sam-tripathi / Defeat-JAVA

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

Closed kfayazuddin closed 1 year ago

kfayazuddin commented 1 year ago

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

sam-tripathi commented 1 year ago

Ok then work on it

kfayazuddin commented 1 year ago

Thanks for assigning.

kfayazuddin commented 1 year ago

Hi i have solved this issue #141 Please merge it .

Thank you