Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started
Hash Tables and Implementations
00:00
5 left

Hash Tables and Implementations

EasySQL · PostgreSQL

Problem

What is a hash table? What are some common implementations?

Asked in the hiring manager or panel interview stage. For this hands-on SQL exercise, use the supplied reference data to return the common implementations and summarize their documented features.

Output

  1. One row per common implementation, with implementation_name, family, collision_strategy, feature_count, and features.
  2. Include implementations even when no feature record exists. Use 0 and NULL appropriately.
  3. Sort by implementation_name ascending.

Schema

hash_table_implementations
ColumnTypeDescription
implementation_idPKINTUnique implementation identifier
implementation_nameVARCHAR(100)Name of the hash table implementation
familyVARCHAR(60)High-level implementation family
collision_strategyVARCHAR(100)Method used to resolve collisions
is_commonBOOLEANWhether the implementation is considered common
implementation_features
ColumnTypeDescription
feature_idPKINTUnique feature identifier
implementation_idINTReferenced hash table implementation
feature_nameVARCHAR(100)Documented characteristic of the implementation
Tableshash_table_implementationsimplementation_features
Interviewer

Your question is Hash Tables and Implementations. Start with the requirements and the two tables in the Question tab.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.
CodePostgreSQL
You need to log in / sign up to run or submit.Ln 1
Run your query to see results here.