Hashing interview questions
Practice 4 questions on hashing. Each runs in a real in-browser editor with Jest tests and a worked, diagram-backed solution.
4 questions
- EASY
String Anagram
Implement a function that determines whether two strings are anagrams of each other.
15 minAlgorithms - MEDIUM
A/B Test Bucketing
Assign users to weighted experiment variants deterministically, with a traffic gate and independent buckets per experiment.
25 minJavaScript - MEDIUM
Bloom Filter
PREMIUMBuild a Bloom filter — a compact probabilistic set that answers membership with no false negatives but possible false positives, using a bit array and several hash functions.
25 minAlgorithms - MEDIUM
Feature Flag Client
PREMIUMEvaluate feature flags with targeting rules and a deterministic percentage rollout that stays sticky per user.
25 minJavaScript