Citadel Data Scientist Coding & Algorithms Interview Questions
Master your tech interview with our curated database of real questions from top companies.
Maximize Stock Trading Profits Using Dynamic Programming
Scenario Evaluating dynamic-programming skills on stock-trading profits. Question Given an array of daily stock prices and an integer K, write Python ...
Implement Infinite Fibonacci Generator Using Lazy Evaluation
Scenario Testing understanding of Python lazy evaluation and generators. Question Explain what lazy evaluation means in Python and implement a generat...
Implement lazy unique-merge generator for sorted streams
Write a Python generator merge_unique(a, b) that lazily merges two nondecreasing iterables a and b (potentially infinite) into a single nondecreasing ...
Implement max profit with K transactions (DP)
Given an array prices[0..n-1] of daily stock prices and an integer k, implement a bottom-up dynamic program to compute the maximum achievable profit w...
Implement two-pointer unique-pair sum search
Given a nondecreasing integer array nums and an integer target, return all unique value pairs [a, b] with a <= b such that a + b == target. Use the tw...