Citadel Data Scientist Coding & Algorithms Interview Questions
Practice the exact questions companies are asking right now.
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...
Match a string with wildcard pattern recursively
Implement a function that checks whether an input string matches a wildcard pattern. Pattern rules - ? matches exactly one character. - * matches any ...
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...