Implement Priority Queue with in-place
Last updated: January 9, 2026
Quick Overview
Implement a Hash Map that supports get and put in O(log n) time.
Walmart
Coding & Algorithms
Software Engineer
Walmart
January 9, 2026Software Engineer
Phone Screen
Coding & Algorithms
Medium
151
7
2,232 solved
Implement a Hash Map that supports get and put in O(log n) time.
How to Approach This
- Clarify input constraints and edge cases before writing code.
- Walk through your approach verbally and confirm with the interviewer before coding.
- Start with a brute force solution, then optimize. Mention time and space complexity.
- Test your solution with examples, including edge cases like empty input or duplicates.
- Consider common patterns: sliding window, two pointers, hash map, BFS/DFS, dynamic programming.
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice DSA ProblemsSubmit Your Answer
Markdown supported