PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches

Quick Overview

This question evaluates competency in tabular data manipulation and join semantics using Python dictionaries, emphasizing understanding of hashing-based lookups and algorithmic complexity such as O(N+M).

  • Medium
  • Citadel
  • Data Manipulation (SQL/Python)
  • Data Scientist

Implement Left Join Using Python Dictionaries Efficiently

Company: Citadel

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: Medium

Interview Round: Technical Screen

Orders +---------+----------+--------+ | order_id| customer | amount | +---------+----------+--------+ | 101 | C1 | 250 | | 102 | C2 | 300 | | 103 | C3 | 150 | ​ Customers +----------+-----------+ | customer | city | +----------+-----------+ | C1 | Seattle | | C3 | Boston | | C4 | Austin | ##### Scenario Performing a left join in pure Python without external libraries. ##### Question Write Python code (no third-party packages) to left-join two lists of dictionaries on key "customer"; discuss an O(N+M) hashing solution. ##### Hints Contrast nested loops with dict-based look-ups; handle missing matches gracefully.

Quick Answer: This question evaluates competency in tabular data manipulation and join semantics using Python dictionaries, emphasizing understanding of hashing-based lookups and algorithmic complexity such as O(N+M).

Last updated: Mar 29, 2026

Related Coding Questions

  • Implement left join on Python lists, no packages - Citadel (Medium)
  • Perform EDA and diagnose data quality - Citadel (Medium)

Loading coding console...

PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.