All Companies

Citadel Interview Questions

42 real interview questions for Software Engineer roles at Citadel.

Showing 1–30 of 42 questions

1

Build a linked list in Java.

Software EngineerSoftware Engineer
2

Implement a balanced binary search tree from scratch and explain its time complexity. Additionally, optimize the tree to efficiently handle duplicate values.

Software EngineerSoftware Engineer
3

Given an array representing a sequence of user events (where each element is a user ID), find the length of the longest contiguous subarray where the most frequent user's frequency within the subarray equals the minimum frequency of any user in the entire event log. Implement an efficient function to return this maximum length.

Software EngineerSoftware Engineer
4

Implement a linked list data structure in Java.

Software EngineerSoftware Engineer
5

Design a financial instrument trading system. How would you ensure atomicity, consistency, and other key transactional properties in the system?

Software EngineerSoftware Engineer
6

Given the head of a singly linked list, reverse the list and return the new head.

Software EngineerSoftware Engineer
7

Given an array of points representing the elevations of a mountain (as a sequence of integers), and a specific position within this array, what is the highest point visible from that position?

Software EngineerSoftware Engineer
8

Implement a queue using a stack.

Software EngineerSoftware Engineer
9

Given a set of numbers [a, b, c, d, e] and a target value t, find the number of triplets in the set whose sum is at most t.

Software EngineerSoftware Engineer
10

Given a CSV file as input, write a program to convert it to columnar data format.

Software EngineerSoftware Engineer
11

Given a sentence containing three types of brackets (e.g., (), {}, []), determine if the brackets are properly balanced and in the correct order.

Software EngineerSoftware Developer
12

Given a sorted array of integers and a target integer, can you find two numbers in the array such that their sum equals the target?

Software EngineerSoftware Engineer
13

Describe an algorithm for calculating the square root of x.

Software EngineerSoftware Engineer
14

Given a binary tree, write a function to determine if it is a valid binary search tree.

Software EngineerDeveloper
15

Implement a hash table with collision handling using probing.

Software EngineerSoftware Engineer
16

Design and implement a defaultdict class in Python using object-oriented design principles.

Software EngineerSoftware Engineer
17

Given a matrix and the top-left and bottom-right coordinates of a submatrix, calculate the sum of the submatrix in (1) linear time and (2) constant time. You are allowed to preprocess the matrix.

Software EngineerSoftware Engineer
18

Write code to implement a multi-reader/single-writer lock.

Software EngineerSoftware Engineer
19

You have a worker and a gold bar. The worker will work for you for 15 days. He must have x/15 of the gold bar after the xth day of work. What is the minimum number of cuts you need to make to the gold bar to pay the worker accordingly?

Software EngineerSoftware Engineer
20

Implement a function to compute the nth Fibonacci number using memoization.

Software EngineerSoftware Engineer
21

Find the number of ways to get from one corner of a grid to the opposite corner, moving only down or right at each step.

Software EngineerSoftware Engineer
22

How do you reverse a linked list?

Software EngineerSoftware Engineer
23

Given an 8x8 chessboard, write code to calculate the number of ways to go from the top left corner to the bottom right corner, where you can move down, up, left, or right at each step.

Software EngineerSoftware Developer
24

Implement a balanced binary search tree from scratch, explain its time complexity, and optimize it to efficiently handle duplicate values.

Software EngineerSoftware Engineer
25

Given an array representing user events, find the length of the longest contiguous subarray where the most frequent user in that subarray has the same number of events as the least frequent user in the entire event log. Write an efficient function to solve this problem.

Software EngineerSoftware Engineer
26

How can a deadlock occur?

Software EngineerSoftware Engineer
27

Given an array representing heights of points on a mountain and a starting position, what is the highest point that is visible from that position?

Software EngineerSoftware Engineer
28

Given a set of numbers [a, b, c, d, e] and a target t, find the number of triplets from the set whose sum is less than or equal to t.

Software EngineerSoftware Engineer
29

Given a sentence containing three types of brackets—parentheses (), square brackets [], and curly braces {}—determine if the brackets are properly matched and ordered.

Software EngineerSoftware Developer
30

Given a sorted array of integers, can you find two numbers such that their sum equals a target integer?

Software EngineerSoftware Engineer

Want the full solutions?

Get detailed walkthroughs for all 141+ Citadel questions with Quant Blueprint.

Get Started