Arrays, strings aur hash maps
Counting, lookup aur grouping ke problems ko arrays, strings aur hash maps se ek hi pass mein solve karna seekho, aur interview ke woh patterns pehchaano jahan inki zaroorat padti hai.
Beginner 3 · Data and toolsabout 2 hours5 sections
Seedha jawab
Array items ko order mein rakhta hai aur position se O(1) mein padhta hai. Python dict jaise hash maps key se value average O(1) mein dhoondh lete hain, jisse bahut saare O(n²) problems O(n) ban jaate hain.
Ye kyun zaroori hai
Roz ke zyadatar data problems, jaise orders ginna ya records match karna, arrays aur hash maps se hi hote hain. Lagbhag har coding interview mein ye pehla topic hota hai, aur O(n²) answer ko O(n) banane ka sabse common tareeka bhi yahi hai.
Sign up free to read the whole lesson
The rest of this lesson: 5 parts, video lessons, the best course, practice and a quick check. It is free, takes a few seconds and needs no card.
Accounts are for learners aged 18 and over. Under 18? The quick answer and the first part of every lesson stay open: browse lessons by topic.
Related
Data structures and algorithmsBeginner 3: Data and toolsVideo lessonsArrayHash mapBig-O notation