hash-map Interview Questions
77 interview questions in our bank cover hash-map, most of them Coding & Leetcode-style Questions. They average 2.7/5 difficulty — medium — and each one was reported by a candidate after a real interview. Companies known to ask about hash-map: Amazon, Valon, Google, Meta.
Practice these on the problems board →Companies that ask about hash-map
Question mix
- Coding & Leetcode-style Questions77
Difficulty
- 1/5 — warm-up3
- 2/5 — easy23
- 3/5 — medium47
- 4/5 — hard4
Questions tagged hash-map
Count Subarrays With At Most K Distinct
3/5Counting contiguous segments with a bounded variety of unique items is a classic algorithmic hurdle often featured in technical assessments at Amazon. This challenge evaluates your proficiency with sliding window techniques and frequency tracking to process sequential data streams efficiently under strict constraints. You must compute the total matching intervals while properly managing large numerical outputs. Unlock the complete breakdown and optimal code implementation by purchasing a subscription.
Coding & Leetcode-style QuestionsAmazonMinimum Removals to Bound Distinct Values
2/5Discover how to approach this popular Amazon coding interview challenge by figuring out the fewest items to discard so that your collection retains no more than a specified variety of unique items. This exercise evaluates your proficiency with sliding windows, frequency tracking, and efficient subset management under constraints. You will learn how to optimize time complexity while sweeping through sequential data structures. Access to the complete problem breakdown and expert model solution requires a subscription.
Coding & Leetcode-style QuestionsAmazonMaximum Book Copies After Each Update
3/5Solve a dynamic inventory tracking challenge from Amazon interviews that requires monitoring inventory fluctuations and instantly identifying the peak volume of any single item. This task evaluates your proficiency with frequency maps, streaming data updates, and efficient maximum-tracking data structures. You will discover how to maintain running maximums dynamically as elements are added and removed. Unlock the full problem description and expert solution with a subscription.
Coding & Leetcode-style QuestionsAmazonMaximum Health Sum of K Server Types
2/5This Amazon interview question challenges you to assemble a collection of computing units from a diverse pool to achieve the highest possible cumulative performance metric while respecting a strict limit on category variety. You will need to aggregate values efficiently by grouping items according to their classification attributes. This problem is excellent for practicing hash map usage, sorting strategies, and greedy selection paradigms. Explore the comprehensive problem statement and detailed algorithmic solution with a paid subscription.
Coding & Leetcode-style QuestionsAmazonDetect Anomalous Event Frequency
3/5Investigate time-series event streams to flag users whose activity spikes abnormally beyond a defined frequency threshold within sliding temporal windows. Reported as an interview challenge at Amazon, this scenario evaluates your skill in handling chronological data, maintaining sliding window states, and filtering large logs efficiently. You will need to structure your code to handle overlapping time frames and return identified actors in a clean, sorted manner. To view the detailed walkthrough and the complete model solution, a subscription is required.
Coding & Leetcode-style QuestionsAmazonVerifying an Alien Dictionary
2/5Frequently asked during technical screening interviews at Meta, this string validation problem requires checking whether a collection of terms is arranged correctly according to a custom, non-standard alphabet sequence. Candidates must implement a comparator or lookup strategy to verify lexicographical ordering based on unfamiliar character priorities rather than traditional ASCII standards. This puzzle is excellent for testing string manipulation fundamentals, hash map usage, and conditional logic. To view the complete problem breakdown and the optimal source code implementation, a subscription is required.
Coding & Leetcode-style QuestionsMetaTop K Items in a Time Range
3/5This frequently asked Amazon interview scenario requires processing a continuous stream of customer activity logs to identify the most frequent items within a specified time window. You will need to design an efficient strategy that filters timestamps, aggregates counts accurately, and breaks sorting ties deterministically according to specific guidelines. This problem tests your ability to combine sliding window concepts with priority queues or frequency maps for real-time analytics. Access the full problem description and expert model solution with a subscription.
Coding & Leetcode-style QuestionsAmazonCheck If All Characters Occur an Even Number of Times
1/5Featured in Amazon technical screenings, this introductory string manipulation task requires you to verify whether every unique character in a text sequence appears an even number of times. It tests fundamental frequency counting and hash map or array utilization for quick parity checks. Get access to the full problem details and a clean reference solution by subscribing.
Coding & Leetcode-style QuestionsAmazonFirst Unique Character Index
2/5Reported as an Amazon interview question, this task challenges you to locate the very first character in a string that does not repeat throughout the text. It evaluates your efficiency in frequency tabulation and single-pass or multi-pass string scanning to return the correct position index. The full problem description and clean implementation require a subscription.
Coding & Leetcode-style QuestionsAmazonRecursive JSON-like Schema Validation
3/5This algorithmic problem, featured in Amazon technical interviews, requires building a robust recursive validation engine that checks whether arbitrary nested data structures conform to predefined hierarchical rules. Candidates must demonstrate proficiency in tree traversal, type checking, and handling complex composite objects and collections. This exercise tests your ability to write clean, defensive parsing logic for deeply nested payloads. Access the complete problem description and optimal model solution by acquiring a subscription.
Coding & Leetcode-style QuestionsAmazonMaximize Count Equal to K After One Subarray Add
4/5In this advanced algorithmic challenge from Amazon, you must determine the maximum frequency of a target value achievable across an array after applying a single additive modification to a chosen contiguous segment. The puzzle requires you to reframe the objective into finding an optimal subarray that maximizes net gains under specific mathematical constraints. It is an exceptional test of prefix sums and Kadane-style optimization logic. Unlock the complete problem context and detailed solution through a subscription.
Coding & Leetcode-style QuestionsAmazonIn-Memory SQL Database with AND Filters
3/5Reported as an interview task from Valon, this challenge asks you to construct a lightweight, in-memory relational data store that dynamically handles record insertions, updates, and targeted lookups without predefined schemas. It evaluates your object-oriented design capabilities, data structuring choices, and proficiency in maintaining insertion order and handling state replacements cleanly. Building this mock database tests how well you manage dynamic keys and dictionaries in memory. Unlock the full prompt and a complete implementation guide with a subscription.
Coding & Leetcode-style QuestionsValonBelt Packing: Online Triplet Detection
4/5This Google interview question presents a streaming data challenge where items arrive sequentially on a conveyor belt. The exercise evaluates your ability to maintain a running multiset and implement an online algorithm that detects and removes specific item triplets matching a numerical threshold condition as they appear. You will need to focus on efficient state tracking and real-time processing performance. The complete problem statement, test cases, and optimal solution are available with a paid subscription.
Coding & Leetcode-style QuestionsGoogleMaintain Manager/Peer Relationships and Answer Queries
3/5This system design and coding problem, reported during a Google interview, revolves around modeling hierarchical organizational charts and answering complex relational queries efficiently. You will need to implement a robust data structure capable of tracking reporting lines and resolving transitive management connections under tight performance constraints. Unlock the comprehensive problem description and the model solution by subscribing.
Coding & Leetcode-style QuestionsGoogleMaximum Equal-Cost Packages
3/5This frequently asked Amazon interview challenge tests your ability to optimize grouping strategies using collection data. You must determine the maximum number of paired or individual bundles that can be formed so that every resulting group shares an identical total cost. The exercise evaluates your proficiency with greedy algorithms, frequency counting, and efficient numerical pairing techniques. Discovering the complete problem statement and reviewing the optimal reference solution requires an active subscription.
Coding & Leetcode-style QuestionsAmazonReconstruct Trip Route From Tickets
2/5Navigating sequence reconstruction challenges is a frequent test of graph traversal and mapping logic in technical assessments reported at Amazon. This puzzle evaluates your ability to process unordered directional travel legs and arrange them into a single continuous pathway from origin to destination without branching confusion. Success depends on selecting appropriate data structures to track connections and efficiently stitching the segments together. Unlock the full problem details and complete model solution with a subscription.
Coding & Leetcode-style QuestionsAmazonAny Character With Odd Frequency
1/5Determining element multiplicities within a collection is a fundamental programming task frequently used in introductory technical assessments. This Amazon-reported coding exercise challenges you to examine a sequence of characters and quickly determine if at least one item appears an odd number of times. It evaluates your fundamental competence in hash-based counting and frequency tracking. Access to the complete problem breakdown and standard model solution requires a subscription.
Coding & Leetcode-style QuestionsAmazonCharacter Occurrences Across Books
2/5Counting character appearances across multiple literary texts is the core task in this Amazon interview question. The problem asks you to process nested collections of textual data and compile a frequency distribution mapping each book to the total mentions of a target persona. It examines your proficiency with hash maps, data aggregation, and nested loop traversal. Reviewing the complete problem statement along with the official model solution requires an active subscription.
Coding & Leetcode-style QuestionsAmazonLongest Same-Speed Segment After k Removals
3/5In this coding challenge reported during an interview with Amazon, you must analyze a sequence of moving participants and determine the longest contiguous group maintaining a uniform velocity after potentially eliminating a limited number of outliers. The puzzle examines your proficiency in array manipulation, sliding window algorithms, and optimizing performance under constraints. Discovering the complete problem parameters and a comprehensive model solution requires a paid subscription.
Coding & Leetcode-style QuestionsAmazonSocial Network Best-Friend Recommendation
3/5Examine this Amazon interview question centered on modeling directed social graph relationships and preference queries. You will build a system that tracks connection weights, identifies top preferences with tie-breaking rules, and resolves multi-hop recommendation chains between network participants. This challenge evaluates graph traversal, dictionary management, and data structure design. Access the complete problem description and optimal solution architecture through a subscription.
Coding & Leetcode-style QuestionsAmazonExpiring Key-Value Cache with TTL
3/5This Meta coding challenge requires you to build an efficient in-memory data store where every stored record includes an expiration timestamp and automatically invalidates past its defined lifespan. The exercise evaluates your knowledge of advanced data structures, priority queues, or bucketed time management to handle insertions, lookups, and active item counting within strict performance boundaries. Mastering time-decay constraints in data engineering interviews is crucial for low-latency backend roles. Reviewing the complete problem statement and production-ready code solution requires a subscription.
Coding & Leetcode-style QuestionsMetaMinimum Keypad Click Count
3/5This Amazon interview challenge requires you to optimize keyboard layout efficiency for a numeric keypad where multiple characters map to individual buttons. You will design an algorithm that determines the optimal placement of letters to minimize the total typing cost based on button press frequencies and finger travel distances. This question examines your greedy allocation strategies and combinatorial optimization skills under constraints. Unlock the full problem details and step-by-step model solution with a subscription.
Coding & Leetcode-style QuestionsAmazonTask Scheduler With Cooldown
3/5Sharpen your algorithmic scheduling abilities with this classic optimization puzzle frequently featured in engineering interviews at Amazon. Given a collection of categorical operations and a mandatory cooldown period between identical identifiers, your goal is to determine the shortest timeline required to complete all workloads efficiently. This task evaluates your capability to manage frequency constraints and compute optimal execution intervals under pressure. Unlock the comprehensive problem statement and verified model solution with an active subscription.
Coding & Leetcode-style QuestionsAmazonEarliest User Who Logged In Exactly Once
2/5This data stream processing challenge, sourced from Amazon interviews, requires maintaining a real-time record of user login events to efficiently identify the earliest user who has authenticated exactly once. It evaluates your competency in designing specialized lookup structures that handle frequency tracking and tie-breaking criteria efficiently. The complete problem specifications, time complexity analysis, and fully implemented model solution require a subscription to view.
Coding & Leetcode-style QuestionsAmazonRetrieve Concrete Items From a Nested Box
3/5Navigating hierarchical data structures is a fundamental computer science competency, frequently tested in coding evaluations at companies like Amazon. This task requires you to traverse nested container definitions, resolve references, and extract all primitive elements contained within a specified target. You will need to design an approach that handles recursive nesting and delivers a cleanly ordered output. Practicing this scenario strengthens your recursive traversal and tree-handling abilities. Unlocking the full problem specification and reference implementation requires an active subscription.
Coding & Leetcode-style QuestionsAmazonCount Processes Executed Out of Order
3/5Analyzing execution order anomalies in event streams is a frequent algorithmic puzzle featured in technical evaluations at major technology leaders like Amazon. This challenge requires determining how many operations violated their dependency constraints by examining the divergence between a mandated workflow and its actual execution log. Solving it efficiently demands robust data structures and clever traversal strategies to verify precedence relationships without incurring prohibitive time penalties. To review the complete problem details, optimal algorithmic approaches, and clean reference code, a paid subscription is required.
Coding & Leetcode-style QuestionsAmazonOptimal Foreground/Background App Pairing
3/5Encountered frequently in software engineering interviews at Amazon, this optimization challenge requires you to pair different resource categories within strict hardware limits. The goal is to match distinct items from two distinct collections so their combined memory footprint approaches a target threshold as closely as possible without exceeding it. This tests your ability to design efficient greedy or two-pointer algorithms. The full problem description and detailed model solution require a subscription.
Coding & Leetcode-style QuestionsAmazonCan Two DNA Strings Become Anagrams
3/5Featured in Amazon coding assessments, this string manipulation puzzle explores character frequencies and anagram transformations between biological sequence pairs. You are tasked with determining if two texts can match their character counts by purging any number of instances of at most one distinct element from each side. The challenge tests your analytical reasoning with frequency maps and combinatorial logic. Review the complete problem statement, constraints, and optimized code implementation by purchasing a subscription.
Coding & Leetcode-style QuestionsAmazonIn-Memory SQL Database: Filter Rows by Column Conditions
2/5Featured in Valon's technical interviews, this task invites you to construct an in-memory relational table capable of executing conditional row filtering. You will extend basic tabular data structures to support query operations that match specific column criteria and return projected subsets of information. This problem evaluates your foundational database concepts, parsing logic, and object-oriented structuring abilities. Unlock the complete challenge details and expert model solution with an active subscription.
Coding & Leetcode-style QuestionsValonDesign an In-Memory Flexible-Schema Database with Column-Based Query and Filters
3/5Designed around a Valon interview problem, this challenge asks you to build an in-memory data store capable of handling flexible schemas with sparse attributes. You will implement core operations for record insertion and column-based querying over records that may contain arbitrary, shifting fields. This exercise tests your capability to design efficient custom data structures, indexing mechanisms, and retrieval filters. Access the complete problem requirements and verified model implementation by purchasing a subscription.
Coding & Leetcode-style QuestionsValonCount Faulty Server Replacements
2/5Analyze system telemetry and track hardware reliability patterns in this practical coding puzzle reminiscent of Amazon technical screenings. The exercise requires you to parse sequential event logs, monitor state continuity across individual entities, and detect threshold violations triggered by consecutive failure markers. You will practice maintaining running counts and state resets efficiently while processing large streams of operational data. Discover the complete problem guidelines, edge-case analysis, and clean model solution by obtaining a subscription.
Coding & Leetcode-style QuestionsAmazonCheck If Two Strings Are Anagrams
1/5Strengthen your foundational string manipulation skills with this classic interview question reported at Amazon. The task requires you to evaluate whether two distinct textual inputs share identical character frequencies regardless of their arrangement. This exercise tests your ability to optimize frequency counting using appropriate data structures for optimal time complexity. Unlock the complete problem statement and clean code implementation by upgrading to a paid subscription.
Coding & Leetcode-style QuestionsAmazonAverage Race Standing Per Player
3/5Processing competitive event logs and computing aggregated statistics is a practical data engineering task featured in Amazon technical interviews. Given multiple event timelines, you must rank participants per event based on completion speed, break ties deterministically, and compute reduced fractional averages across their entire history. This challenge evaluates your ability to manage complex data aggregations, sort efficiently, and handle missing participation records. Unlock the full specifications, sample datasets, and optimal code solution with a subscription.
Coding & Leetcode-style QuestionsAmazonLongest Perfect-Anagram Substring Pair
3/5This Amazon interview question challenges you to locate the longest pair of non-identical substrings within a given text that share identical character frequencies. It evaluates string manipulation expertise, sliding window techniques, and efficient hashing or frequency-counting strategies. The complete problem text, test cases, and model solution require a subscription.
Coding & Leetcode-style QuestionsAmazonCustomers Who Visited on Multiple Days
2/5Analyze sequential activity logs to isolate and extract frequent visitors based on distinct calendar appearances. Originally featured in Amazon technical rounds, this coding challenge examines your data aggregation skills, hash map utilization, and capability to preserve chronological ordering of unique events. It requires designing an efficient routine that scans historical records and identifies individuals who return across multiple distinct days. Upgrade your account today to view the full problem specification and optimal programmatic solution.
Coding & Leetcode-style QuestionsAmazonIn-Memory SQL Database: Insert and Select by Column Names
2/5This Valon interview question asks you to construct a lightweight, in-memory tabular database capable of managing schemas, inserting mapped row entries, and retrieving filtered column data. It evaluates your ability to design clean data structures, handle state mutations efficiently, and implement basic relational query logic without external storage dependencies. Unlock the complete problem description and model solution by subscribing to our platform.
Coding & Leetcode-style QuestionsValonManager With Highest Average Salary Among Reports
3/5This Amazon interview question focuses on hierarchical data processing and aggregation over employee reporting structures. You must compute statistical metrics for direct reports to identify top-performing managers, as well as aggregate performance across entire organizational trees. The challenge tests your graph traversal capabilities, recursive thinking, and efficient database or in-memory grouping techniques. Gain access to the complete challenge description and professional model solution by purchasing a subscription.
Coding & Leetcode-style QuestionsAmazonMost Frequent Length-3 Event Sequence From Logs
3/5In this analytical challenge reported during Amazon technical screens, engineers are tasked with analyzing chronological user activity logs to discover the most frequently occurring three-step action chains. Participants must group activities by individual identifiers, extract consecutive triplets, aggregate their frequencies globally, and resolve any tie-breaking scenarios lexicographically. This question examines proficiency in data manipulation, hash map aggregation, and sorting strategies. Unlocking the complete problem details and the optimal model solution requires an active subscription.
Coding & Leetcode-style QuestionsAmazonTop 5 Daily Sales per Category
3/5This data manipulation challenge, reported as a common interview question at Amazon, requires filtering and sorting multi-dimensional sales records to find top performing metrics per category across daily timelines. Candidates must demonstrate proficiency in data aggregation, sorting hierarchies, and efficient grouping logic. To view the complete dataset specifications, constraints, and an optimal code solution, please subscribe.
Coding & Leetcode-style QuestionsAmazonMax Skill Sum of a Balanced Team
3/5Find an optimal contiguous segment within a workforce dataset where two distinct employee categories are represented in equal proportions, maximizing their combined capability score in this technical assessment from Amazon. The task evaluates your proficiency with prefix sums, hash maps, and linear-time array processing techniques. Unlock the comprehensive solution and code walkthrough with a subscription.
Coding & Leetcode-style QuestionsAmazonCount Pairs With Sum Divisible by X
2/5This Amazon interview challenge asks you to examine a collection of prices and determine how many unique pairs yield a sum divisible by a given divisor. Candidates must design an efficient approach that avoids brute-force comparisons to meet performance expectations. The exercise evaluates modular arithmetic principles and frequency-counting strategies. Unlock the complete problem breakdown and optimized code solution with a paid subscription.
Coding & Leetcode-style QuestionsAmazonCount Distinct Value Pairs Summing to Target
3/5Featured in an Amazon technical screening, this problem challenges you to find unique pairs of numbers within a collection that add up to a specific sum. The difficulty lies in handling duplicate values correctly while ensuring that identical numerical combinations from different positions are not overcounted. It tests your proficiency with hash maps, two-pointer techniques, and efficient frequency counting. Unlocking the comprehensive problem statement and verified model solution requires an active subscription.
Coding & Leetcode-style QuestionsAmazonReplace Delimited Tokens in a String
2/5Text manipulation and pattern substitution are frequent tasks in template rendering and configuration management engines. In this Amazon interview question, you must parse a text stream for specific delimited tokens and substitute them using a predefined dictionary while leaving unrecognized patterns untouched. The challenge examines your string manipulation skills, boundary checking, and efficiency in handling arbitrary inputs. Unlock the full problem details and complete model implementation by subscribing today.
Coding & Leetcode-style QuestionsAmazonLexicographically Smallest Palindrome
3/5In this problem frequently reported by Amazon, candidates are challenged to construct the earliest possible alphabetical palindrome using a collection of letter tokens. The exercise evaluates your ability to manage character frequencies and apply greedy string-building strategies efficiently. To succeed, you must carefully balance elements while handling parity rules for central characters. Access to the complete problem description and an optimized model solution requires a subscription.
Coding & Leetcode-style QuestionsAmazonLowest Common Ancestor in an N-ary Tree
3/5In this interview scenario frequently used by Amazon, you are tasked with identifying the deepest shared ancestor of two specific nodes within a hierarchical tree structure where nodes can possess multiple children. The challenge examines your capability to traverse tree hierarchies and manage parent-child relationships effectively without relying on binary tree assumptions. Developing a clean, recursive approach is key to passing the evaluation. The full problem text and the complete model solution are locked behind a subscription.
Coding & Leetcode-style QuestionsAmazonImplement a HashMap Without Built-in Libraries
2/5Strengthen your grasp of foundational data structures with this classic system design question reported at Amazon. The objective is to construct a functional key-value mapping interface without relying on standard built-in libraries, supporting standard insertion, retrieval, and deletion operations. This exercise tests your understanding of hash functions, collision resolution techniques, and memory management basics. The full problem specification and clean code implementation require a subscription.
Coding & Leetcode-style QuestionsAmazonTop K Visited Domains
3/5This popular Amazon interview problem evaluates your ability to process and aggregate hierarchical string data efficiently. You are tasked with analyzing a collection of hostname logs against a specific target list to compute total frequencies, accounting for subdomain relationships. The challenge tests string manipulation and hash map aggregation techniques to extract and sort the most prominent entries. Access to the complete problem description, optimal algorithmic approach, and verified code solution requires a paid subscription.
Coding & Leetcode-style QuestionsAmazonSparse Vector Dot Product
2/5This classic Meta interview question focuses on optimizing mathematical operations for highly sparse datasets where most values are zero. Instead of using standard matrix multiplication, candidates must design a compact data structure and an efficient algorithm to compute the dot product of two vectors by only evaluating meaningful non-zero entries. This challenge examines your knowledge of memory-efficient representations and algorithmic optimization techniques. Gain access to the full problem breakdown and a clean, tested solution by subscribing.
Coding & Leetcode-style QuestionsMetaSort Array Elements by Frequency
2/5In this classic Amazon technical screening problem, you are tasked with rearranging a collection of integers so that elements appearing more frequently come first, while tie-breaking is handled by numerical value. This exercise tests your proficiency with hash maps for counting frequencies and custom sorting algorithms to manage complex ordering criteria efficiently. Mastering this pattern helps strengthen your data structure manipulation skills for upcoming assessments. Unlock the full problem description and expert code solution by purchasing a subscription.
Coding & Leetcode-style QuestionsAmazonMost Influential Prefix Per Length
3/5Examine a string manipulation and frequency analysis challenge reported as an interview question at Amazon. This puzzle requires you to evaluate collections of text elements and determine the maximum occurrence frequency across prefixes of varying lengths. It tests your ability to process lexical hierarchies, utilize prefix trees or hashing structures, and optimize aggregate calculations. Unlock the full problem breakdown and verified coding solution with a platform subscription.
Coding & Leetcode-style QuestionsAmazonMinimum Cost to Break a Subsequence Match
3/5Solve a combinatorial string reduction puzzle featured in technical interviews at Amazon, where you must eliminate specific characters at minimal expense to disrupt subsequence relationships. This challenge tests your optimization skills, frequency counting logic, and greedy or dynamic programming approaches to handle character weights and conditional constraints. Discover the complete problem walkthrough and professional solution code by securing a platform subscription.
Coding & Leetcode-style QuestionsAmazonFruit Into Baskets — Longest Two-Distinct Subarray
2/5Explore a popular array-based coding puzzle commonly encountered in Amazon technical interviews. The objective is to discover the longest contiguous segment within a sequence that contains no more than two distinct categories of items. This exercise is designed to test your mastery of sliding window techniques, frequency tracking, and efficient pointer management for sequential data processing. Master the underlying algorithmic patterns and review the optimal code solution by getting a subscription.
Coding & Leetcode-style QuestionsAmazonFind Duplicate Numbers in a List
2/5Identifying recurrent elements within an unordered collection is a fundamental screening exercise frequently encountered during coding assessments at Amazon. This problem challenges you to process a collection of numerical values and efficiently extract those that appear more than once, returning them in a clean, sorted format. It serves as a great warm-up for evaluating fundamental data structure usage and linear time processing techniques. Gain access to the full problem breakdown, optimal algorithmic approaches, and the complete source code by upgrading to a paid subscription.
Coding & Leetcode-style QuestionsAmazonFind Timed-Out Activities
2/5This Google interview question asks you to evaluate a continuous stream of timestamped actions to identify which entities have exceeded an inactivity threshold. It tests your proficiency in managing state and tracking temporal gaps efficiently in dynamic datasets. Unlock the full problem description and complete solution with a paid subscription.
Coding & Leetcode-style QuestionsGoogleCount Gift Pairs Summing to a Power of Three
3/5This frequently asked Amazon interview puzzle challenges candidates to efficiently analyze numerical sequences and identify valid combinations whose combined values align with specific exponential milestones. Tackling this challenge effectively requires mastering clever hash-mapping or two-pointer techniques to avoid sluggish brute-force enumeration. Engineers will evaluate their capacity to optimize time complexity while handling scale constraints gracefully. To examine the complete problem statement along with a robust, production-ready reference solution, unlock full platform access today.
Coding & Leetcode-style QuestionsAmazonCount Islands per Distinct Number
3/5This grid traversal problem, commonly asked at Amazon, requires you to analyze a matrix containing various integer values and count isolated connected components for each unique identifier. It tests your proficiency with graph search algorithms and spatial indexing structures to properly categorize multi-valued spatial regions. To view the full problem statement and clean code solution, please upgrade to a paid subscription.
Coding & Leetcode-style QuestionsAmazonTop K Pages by Click Count
2/5In this classic data processing challenge reported from Amazon interviews, candidates are tasked with identifying the most frequently accessed resources from a large stream of web traffic logs. The exercise evaluates your proficiency in aggregation, sorting techniques, and custom tie-breaking logic when handling high-volume tracking data. You must design an efficient procedure that accurately ranks items by popularity while managing deterministic ordering. Reviewing the comprehensive problem specifications and the complete reference solution requires a paid subscription.
Coding & Leetcode-style QuestionsAmazonMinimum Changes for Equal Length-k Window Sums
3/5This coding challenge, featured in Amazon interviews, tests your proficiency in array manipulation and window-based calculations. You must determine the minimal adjustments required to ensure that every contiguous subsegment of a fixed length yields an identical total. Unlock the complete problem description and professional model solution with a paid subscription.
Coding & Leetcode-style QuestionsAmazonF-Match Score Between Usernames
3/5This algorithmic puzzle, commonly encountered in software engineering interviews at Amazon, asks you to analyze two text sequences using a specialized stride parameter. The objective is to discover how many evenly spaced intervals within the primary text form valid anagrams of the secondary text. This task examines your string manipulation skills, pattern matching intuition, and optimization strategies for handling overlapping segments. Unlock the full problem details and expert-crafted solution by purchasing a subscription.
Coding & Leetcode-style QuestionsAmazonLongest Subarray With Target Sum
3/5This foundational array manipulation question, featured in interview loops at Amazon, asks you to locate the longest contiguous segment within a numeric list that sums up to a desired target value. The challenge lies in efficiently processing negative and positive numbers to find the optimal subarray bounds without relying on slow nested loops. This problem tests your ability to apply prefix sum techniques combined with hash maps for optimal time complexity. Gain access to the full problem breakdown and expert solution with a subscription.
Coding & Leetcode-style QuestionsAmazonCount Fully-Surrounded Robots
3/5This Amazon coding challenge requires you to analyze coordinate data to find elements that are completely surrounded by peers in all four cardinal directions. It evaluates your spatial reasoning, coordinate indexing efficiency, and ability to process multidimensional arrangements. Gain access to the full problem text, thorough test suites, and expert solutions with a subscription.
Coding & Leetcode-style QuestionsAmazonK-Nearest Neighbors Classification
3/5Master the fundamental instance-based learning algorithm frequently discussed in technical evaluations at Amazon. This challenge evaluates your ability to implement a metric-driven predictive model from scratch, requiring you to compute spatial distances, manage multi-class voting mechanisms, and handle tie-breaking rules efficiently without relying on pre-built machine learning libraries. You will need to structure your code to handle arbitrary training sets and query points cleanly. The full problem and model solution require a subscription.
Coding & Leetcode-style QuestionsAmazonPer-User Minimum Order-Ad Time Difference
3/5Featured in an Amazon technical screening, this problem requires you to analyze two chronologically ordered streams containing user timestamps for purchases and advertisements. For every individual appearing in both datasets, you must calculate the absolute closest time gap between their respective events. This task emphasizes pointer management and efficient merging techniques over sequential data. Unlock the detailed problem context and optimal code solution by subscribing.
Coding & Leetcode-style QuestionsAmazonSentence Word Index With Deletion
3/5Tackle a dynamic text management challenge commonly posed in Amazon technical screenings, where you build a system to index, update, and retrieve textual documents efficiently. The task requires maintaining ordered collections of document identifiers based on keyword presence while supporting rapid insertions and removals. It evaluates your proficiency in choosing optimal data structures for frequent lookup and modification operations. Gain access to the full problem description and verified solution code through our paid subscription.
Coding & Leetcode-style QuestionsAmazonSum of Distinct Counts Over All Subarrays
3/5This Amazon interview problem asks you to compute a specific aggregate sum over all possible contiguous subarrays of a given input array. For each individual subarray, you must determine the number of unique values it contains. The ultimate goal is to sum these distinct counts across every single subarray. This challenge tests your ability to efficiently iterate through subarrays and, more critically, to optimize the process of counting distinct elements within them, often requiring techniques like sliding windows or clever data structures to avoid redundant computations. The full problem and model solution require a subscription.
Coding & Leetcode-style QuestionsAmazonStrings Equal Under a Letter Bijection
3/5This Amazon coding challenge presents an intriguing problem involving string comparisons under a unique transformation rule. For each given pair of strings, you must ascertain if one can be made identical to the other by consistently remapping characters. This means any character in the first string can be globally substituted for another, as long as the mapping is one-to-one and consistent across all occurrences. The question assesses your ability to identify underlying structural equivalence despite superficial differences in character representation. The full problem and model solution require a subscription.
Coding & Leetcode-style QuestionsAmazonSubarray Sum Equals K (Streaming Follow-up)
3/5Calculate the frequency of continuous segments within a numerical sequence that achieve a designated aggregate value, with an advanced streaming twist where inputs arrive dynamically. Frequently asked during engineering interviews at Google, this problem challenges your proficiency with prefix sums and hash-based frequency tracking in real-time data environments. Explore the full problem statement, algorithmic deep dive, and reference solution by upgrading to a paid subscription.
Coding & Leetcode-style QuestionsGoogleCount Compatible Substrings
4/5Determine the quantity of specific text segments that can be perfectly partitioned into consecutive anagrams of a provided collection of target items. Sourced from Amazon technical assessments, this intricate string-processing challenge examines your mastery of sliding windows, frequency matching, and combinatorial pattern recognition. Read the complete problem breakdown, complexity analysis, and optimal solution by subscribing today.
Coding & Leetcode-style QuestionsAmazonFill Wildcards to Minimize Cost
3/5Tackling text completion challenges with missing symbols requires strategic decision-making to keep accumulation metrics low while maintaining alphabetical order. This reported Amazon interview puzzle tests your ability to optimize string construction under strict penalty constraints. Discovering the most efficient replacement strategy demands clever algorithm design and careful state management. Access to the comprehensive problem description and optimal model solution requires a paid subscription.
Coding & Leetcode-style QuestionsAmazonReal Names With Multiple Registrations
3/5This Amazon technical screening task requires processing a collection of identity records to identify entities with multiple distinct registrations. Candidates must write an algorithm that recognizes anagram variations of canonical names and filters out recurring entries according to specific criteria. This exercise tests hash map utilization, string normalization, and frequency counting techniques. Access to the full problem context, sample datasets, and verified code solution requires a paid subscription.
Coding & Leetcode-style QuestionsAmazonDeep Copy Linked List With Random and Extra Pointers
3/5Featured as a software engineering interview question at Amazon, this challenge requires you to duplicate a complex linked structure containing multiple specialized references per node. Candidates must construct a completely independent clone where every primary, random, and auxiliary pointer is accurately mapped without referencing the original entities. This exercise examines your mastery of pointer manipulation, memory management, and graph traversal techniques in linear time. The complete problem breakdown and verified model solution require a subscription.
Coding & Leetcode-style QuestionsAmazonRepeat Customers Across Days
2/5This Amazon coding question requires you to analyze timestamped activity records to identify loyal users who return across multiple distinct calendar days. You will need to parse date-time strings, aggregate user visits, and produce a cleanly sorted output of recurring participants. This exercise tests fundamental string manipulation, data grouping, and basic collection handling. The complete problem text and reference implementation require a subscription.
Coding & Leetcode-style QuestionsAmazonGreatest Outlier Value
3/5Encountered in an Amazon technical interview, this puzzle asks you to analyze a collection of integers that includes standard values, their cumulative total, and a single anomalous outlier. Your objective is to efficiently isolate and compute the maximum possible value for that exceptional element using linear scan techniques. This problem assesses your numeric reasoning, mathematical deduction, and skill in designing efficient array-scanning algorithms. Review the complete problem statement and discover the optimal model solution by acquiring a subscription.
Coding & Leetcode-style QuestionsAmazonLFU Cache
4/5Master a classic cache design problem frequently encountered in technical rounds at Amazon by building a specialized data structure that evicts items based on access frequency. This challenge tests your ability to maintain constant time complexity for retrieval and insertion operations while tracking usage counts and breaking ties chronologically. Candidates must carefully coordinate multiple internal data structures to ensure optimal performance during capacity thresholds. Access to the comprehensive problem description, optimal algorithmic architecture, and complete model solution requires a subscription.
Coding & Leetcode-style QuestionsAmazonMinimum Variance of an Equal-Ends Group
3/5This coding challenge, frequently reported in technical interviews at Amazon, requires candidates to analyze contiguous segments of a numeric sequence based on matching endpoints. You will need to design an efficient algorithm that evaluates internal frequencies to determine the lowest possible spread for qualifying subsegments. This problem tests your mastery of array manipulation, sliding window concepts, and optimization techniques. Access to the comprehensive problem breakdown and optimal reference solution requires a paid subscription.
Coding & Leetcode-style QuestionsAmazonRunning Sum After Value-Replacement Queries
2/5In this coding challenge reported from Amazon, you must process a sequence of data elements alongside a series of substitution directives. After each transformation where specific values are swapped, you need to calculate and collect the cumulative total of the dataset. This exercise evaluates your proficiency in efficient list updates and running calculations. To access the full problem details and code solution, a subscription is required.
Coding & Leetcode-style QuestionsAmazonDeduplicate Events by Latest Timestamp
2/5Tackling data streams containing redundant information is a common challenge in software engineering interviews, specifically featured in technical assessments at Amazon. This problem evaluates your ability to filter datasets effectively by isolating the most recent entries corresponding to unique identifiers and arranging the final results in a structured order. Success in this exercise requires efficient grouping and sorting techniques to handle large volumes of incoming records. The complete problem statement, optimal algorithms, and verified model solutions require a paid subscription.
Coding & Leetcode-style QuestionsAmazon
Studied alongside
hash-map interview FAQ
- How many hash-map interview questions are there?
- 77 reported questions, mostly Coding & Leetcode-style Questions.
- Which companies ask hash-map questions?
- Amazon (66), Valon (4), Google (4), Meta (3).
- How hard are hash-map questions?
- They average 2.7 out of 5: 3 at 1/5, 23 at 2/5, 47 at 3/5, 4 at 4/5.