It is a repositry consisting of java tutorials,projects, Data Structures and Algorithm, Roadmap Questions and Problems with Solution . Building a FREE Resources for java learners
17
stars
61
forks
source link
Longest Consecutive sequence question using Hashmap Datastructure #141
I want to solve this import question using Hashmap,
which help user to again understanding :
1.)inbuild function of Hashmap
2.) Understand of question solution through Hashmap and with Time complexity O(n);
using searching array it makes the tim complexity O(n^2).
3.)Optimised Code
I want to solve this import question using Hashmap, which help user to again understanding : 1.)inbuild function of Hashmap 2.) Understand of question solution through Hashmap and with Time complexity O(n); using searching array it makes the tim complexity O(n^2). 3.)Optimised Code