All Companies

Citadel Interview Questions

11 real interview questions for Software Engineer Intern roles at Citadel.

Showing 1–11 of 11 questions

1

Implement a class for the game Connect 4.

Software Engineer InternSoftware Engineer Intern
2

Given an array v, find the number of pairs of indices (i, j) such that v[i] = v[j] = v[i+1] + v[i+2] + ... + v[j-1]. Your solution should have time complexity O(n log n).

Software Engineer InternSoftware Engineer Intern
3

How would you solve a scheduling issue given a directed acyclic graph (DAG) of tasks and k computers? What if k is one or infinity?

Software Engineer InternSoftware Engineer Intern
4

Design an algorithm to randomly select people in a city such that the probability of selecting someone from a given district is proportional to the district's population size. Additionally, discuss how you would test your implementation and optimize its runtime, considering repeated calls to the selection function with an acceptable error margin.

Software Engineer InternSoftware Developer Intern
5

If a Binary Search Tree was implemented incorrectly such that a node has a left child that is not smaller than itself, how would you detect this violation? What is the most efficient method to identify this issue?

Software Engineer InternSoftware Developer Intern
6

Given an n x n chessboard, return the minimum number of knight moves required to get from point (a, b) to point (c, d).

Software Engineer InternSoftware Engineering Intern
7

Return a minimum-length list of perfect squares whose sum equals a given value k.

Software Engineer InternSoftware Engineering Intern
8

Reverse a linked list in place.

Software Engineer InternSoftware Engineering Intern
9

Implement a class for the game Connect Four.

Software Engineer InternSoftware Engineer Intern
10

Find the number of pairs of indices (i, j) in an array v such that v[i] = v[j] = v[i+1] + v[i+2] + ... + v[j-1]. Design an algorithm with time complexity O(n log n).

Software Engineer InternSoftware Engineer Intern
11

If a Binary Search Tree was implemented incorrectly, such that a number to the left of a node is not smaller as it should be, how would you detect this mistake? What is the most efficient way to identify such an error?

Software Engineer InternSoftware Developer Intern

Want the full solutions?

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

Get Started