# Citadel Coding Interview Questions

> 96 DSA problems asked in Citadel coding interviews and online assessments, sorted easiest first with hints. Free practice for placements on InternHack.

Canonical: https://www.internhack.in/learn/dsa/companies/citadel
Last updated: 2026-11-28

96 DSA problems tagged as asked in Citadel coding interviews and online assessments. Below are all 96: 6 easy, 59 medium and 31 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

## Citadel DSA problems, easiest first

1. [Best Time to Buy and Sell Stock](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock) (Easy)
2. [Climbing Stairs](https://www.internhack.in/learn/dsa/problem/climbing-stairs) (Easy)
3. [Fizz Buzz](https://www.internhack.in/learn/dsa/problem/fizz-buzz) (Easy)
4. [Moving Average from Data Stream](https://www.internhack.in/learn/dsa/problem/moving-average-from-data-stream) (Easy)
5. [Sqrt(x)](https://www.internhack.in/learn/dsa/problem/sqrtx) (Easy)
6. [Two Sum](https://www.internhack.in/learn/dsa/problem/two-sum) (Easy)
7. [Binary Tree Zigzag Level Order Traversal](https://www.internhack.in/learn/dsa/problem/binary-tree-zigzag-level-order-traversal) (Medium)
8. [Combination Sum](https://www.internhack.in/learn/dsa/problem/combination-sum) (Medium)
9. [Count Number of Maximum Bitwise-OR Subsets](https://www.internhack.in/learn/dsa/problem/count-number-of-maximum-bitwise-or-subsets) (Medium)
10. [Count Primes](https://www.internhack.in/learn/dsa/problem/count-primes) (Medium)
11. [Course Schedule](https://www.internhack.in/learn/dsa/problem/course-schedule) (Medium)
12. [Course Schedule II](https://www.internhack.in/learn/dsa/problem/course-schedule-ii) (Medium)
13. [Delete and Earn](https://www.internhack.in/learn/dsa/problem/delete-and-earn) (Medium)
14. [Design A Leaderboard](https://www.internhack.in/learn/dsa/problem/design-a-leaderboard) (Medium)
15. [Design Circular Queue](https://www.internhack.in/learn/dsa/problem/design-circular-queue) (Medium)
16. [Design Front Middle Back Queue](https://www.internhack.in/learn/dsa/problem/design-front-middle-back-queue) (Medium)
17. [Design Tic-Tac-Toe](https://www.internhack.in/learn/dsa/problem/design-tic-tac-toe) (Medium)
18. [Egg Drop With 2 Eggs and N Floors](https://www.internhack.in/learn/dsa/problem/egg-drop-with-2-eggs-and-n-floors) (Medium)
19. [Evaluate Division](https://www.internhack.in/learn/dsa/problem/evaluate-division) (Medium)
20. [Evaluate Reverse Polish Notation](https://www.internhack.in/learn/dsa/problem/evaluate-reverse-polish-notation) (Medium)
21. [Find First and Last Position of Element in Sorted Array](https://www.internhack.in/learn/dsa/problem/find-first-and-last-position-of-element-in-sorted-array) (Medium)
22. [Find the Duplicate Number](https://www.internhack.in/learn/dsa/problem/find-the-duplicate-number) (Medium)
23. [First Completely Painted Row or Column](https://www.internhack.in/learn/dsa/problem/first-completely-painted-row-or-column) (Medium)
24. [Group Anagrams](https://www.internhack.in/learn/dsa/problem/group-anagrams) (Medium)
25. [Implement Trie (Prefix Tree)](https://www.internhack.in/learn/dsa/problem/implement-trie-prefix-tree) (Medium)
26. [Insert Delete GetRandom O(1)](https://www.internhack.in/learn/dsa/problem/insert-delete-getrandom-o1) (Medium)
27. [Integer Break](https://www.internhack.in/learn/dsa/problem/integer-break) (Medium)
28. [Integer to Roman](https://www.internhack.in/learn/dsa/problem/integer-to-roman) (Medium)
29. [Koko Eating Bananas](https://www.internhack.in/learn/dsa/problem/koko-eating-bananas) (Medium)
30. [Length of Longest Subarray With at Most K Frequency](https://www.internhack.in/learn/dsa/problem/length-of-longest-subarray-with-at-most-k-frequency) (Medium)
31. [Letter Combinations of a Phone Number](https://www.internhack.in/learn/dsa/problem/letter-combinations-of-a-phone-number) (Medium)
32. [Longest Increasing Subsequence](https://www.internhack.in/learn/dsa/problem/longest-increasing-subsequence) (Medium)
33. [Longest Non-decreasing Subarray From Two Arrays](https://www.internhack.in/learn/dsa/problem/longest-non-decreasing-subarray-from-two-arrays) (Medium)
34. [Longest Palindromic Substring](https://www.internhack.in/learn/dsa/problem/longest-palindromic-substring) (Medium)
35. [Longest String Chain](https://www.internhack.in/learn/dsa/problem/longest-string-chain) (Medium)
36. [LRU Cache](https://www.internhack.in/learn/dsa/problem/lru-cache) (Medium)
37. [Max Consecutive Ones III](https://www.internhack.in/learn/dsa/problem/max-consecutive-ones-iii) (Medium)
38. [Maximal Square](https://www.internhack.in/learn/dsa/problem/maximal-square) (Medium)
39. [Maximum Length of Repeated Subarray](https://www.internhack.in/learn/dsa/problem/maximum-length-of-repeated-subarray) (Medium)
40. [Maximum Subarray](https://www.internhack.in/learn/dsa/problem/maximum-subarray) (Medium)
41. [Maximum Total Damage With Spell Casting](https://www.internhack.in/learn/dsa/problem/maximum-total-damage-with-spell-casting) (Medium)
42. [Meeting Rooms II](https://www.internhack.in/learn/dsa/problem/meeting-rooms-ii) (Medium)
43. [Meeting Scheduler](https://www.internhack.in/learn/dsa/problem/meeting-scheduler) (Medium)
44. [Merge Intervals](https://www.internhack.in/learn/dsa/problem/merge-intervals) (Medium)
45. [Min Stack](https://www.internhack.in/learn/dsa/problem/min-stack) (Medium)
46. [Minimum Equal Sum of Two Arrays After Replacing Zeros](https://www.internhack.in/learn/dsa/problem/minimum-equal-sum-of-two-arrays-after-replacing-zeros) (Medium)
47. [Minimum Knight Moves](https://www.internhack.in/learn/dsa/problem/minimum-knight-moves) (Medium)
48. [Next Permutation](https://www.internhack.in/learn/dsa/problem/next-permutation) (Medium)
49. [Number of Dice Rolls With Target Sum](https://www.internhack.in/learn/dsa/problem/number-of-dice-rolls-with-target-sum) (Medium)
50. [Number of Islands](https://www.internhack.in/learn/dsa/problem/number-of-islands) (Medium)
51. [Number of Orders in the Backlog](https://www.internhack.in/learn/dsa/problem/number-of-orders-in-the-backlog) (Medium)
52. [Paint House](https://www.internhack.in/learn/dsa/problem/paint-house) (Medium)
53. [Pairs of Songs With Total Durations Divisible by 60](https://www.internhack.in/learn/dsa/problem/pairs-of-songs-with-total-durations-divisible-by-60) (Medium)
54. [Palindromic Substrings](https://www.internhack.in/learn/dsa/problem/palindromic-substrings) (Medium)
55. [Perfect Squares](https://www.internhack.in/learn/dsa/problem/perfect-squares) (Medium)
56. [Permutations](https://www.internhack.in/learn/dsa/problem/permutations) (Medium)
57. [Pow(x, n)](https://www.internhack.in/learn/dsa/problem/powx-n) (Medium)
58. [Reorganize String](https://www.internhack.in/learn/dsa/problem/reorganize-string) (Medium)
59. [Reverse Words in a String](https://www.internhack.in/learn/dsa/problem/reverse-words-in-a-string) (Medium)
60. [Search Suggestions System](https://www.internhack.in/learn/dsa/problem/search-suggestions-system) (Medium)
61. [Simplify Path](https://www.internhack.in/learn/dsa/problem/simplify-path) (Medium)
62. [Smallest Missing Non-negative Integer After Operations](https://www.internhack.in/learn/dsa/problem/smallest-missing-non-negative-integer-after-operations) (Medium)
63. [Time Based Key-Value Store](https://www.internhack.in/learn/dsa/problem/time-based-key-value-store) (Medium)
64. [Validate Binary Search Tree](https://www.internhack.in/learn/dsa/problem/validate-binary-search-tree) (Medium)
65. [Word Search](https://www.internhack.in/learn/dsa/problem/word-search) (Medium)
66. [Best Position for a Service Centre](https://www.internhack.in/learn/dsa/problem/best-position-for-a-service-centre) (Hard)
67. [Best Time to Buy and Sell Stock III](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock-iii) (Hard)
68. [Best Time to Buy and Sell Stock IV](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock-iv) (Hard)
69. [Binary Tree Maximum Path Sum](https://www.internhack.in/learn/dsa/problem/binary-tree-maximum-path-sum) (Hard)
70. [Count Palindromic Subsequences](https://www.internhack.in/learn/dsa/problem/count-palindromic-subsequences) (Hard)
71. [Couples Holding Hands](https://www.internhack.in/learn/dsa/problem/couples-holding-hands) (Hard)
72. [Critical Connections in a Network](https://www.internhack.in/learn/dsa/problem/critical-connections-in-a-network) (Hard)
73. [Design Excel Sum Formula](https://www.internhack.in/learn/dsa/problem/design-excel-sum-formula) (Hard)
74. [Design Search Autocomplete System](https://www.internhack.in/learn/dsa/problem/design-search-autocomplete-system) (Hard)
75. [Employee Free Time](https://www.internhack.in/learn/dsa/problem/employee-free-time) (Hard)
76. [Find Median from Data Stream](https://www.internhack.in/learn/dsa/problem/find-median-from-data-stream) (Hard)
77. [Find Servers That Handled Most Number of Requests](https://www.internhack.in/learn/dsa/problem/find-servers-that-handled-most-number-of-requests) (Hard)
78. [LFU Cache](https://www.internhack.in/learn/dsa/problem/lfu-cache) (Hard)
79. [Max Points on a Line](https://www.internhack.in/learn/dsa/problem/max-points-on-a-line) (Hard)
80. [Maximum Profit in Job Scheduling](https://www.internhack.in/learn/dsa/problem/maximum-profit-in-job-scheduling) (Hard)
81. [Merge k Sorted Lists](https://www.internhack.in/learn/dsa/problem/merge-k-sorted-lists) (Hard)
82. [Minimum Costs Using the Train Line](https://www.internhack.in/learn/dsa/problem/minimum-costs-using-the-train-line) (Hard)
83. [Minimum Operations to Make Numbers Non-positive](https://www.internhack.in/learn/dsa/problem/minimum-operations-to-make-numbers-non-positive) (Hard)
84. [Optimal Account Balancing](https://www.internhack.in/learn/dsa/problem/optimal-account-balancing) (Hard)
85. [Parallel Courses III](https://www.internhack.in/learn/dsa/problem/parallel-courses-iii) (Hard)
86. [Rank Transform of a Matrix](https://www.internhack.in/learn/dsa/problem/rank-transform-of-a-matrix) (Hard)
87. [Reconstruct Itinerary](https://www.internhack.in/learn/dsa/problem/reconstruct-itinerary) (Hard)
88. [Regular Expression Matching](https://www.internhack.in/learn/dsa/problem/regular-expression-matching) (Hard)
89. [Serialize and Deserialize Binary Tree](https://www.internhack.in/learn/dsa/problem/serialize-and-deserialize-binary-tree) (Hard)
90. [Sliding Window Maximum](https://www.internhack.in/learn/dsa/problem/sliding-window-maximum) (Hard)
91. [Sort Items by Groups Respecting Dependencies](https://www.internhack.in/learn/dsa/problem/sort-items-by-groups-respecting-dependencies) (Hard)
92. [Sudoku Solver](https://www.internhack.in/learn/dsa/problem/sudoku-solver) (Hard)
93. [Transform to Chessboard](https://www.internhack.in/learn/dsa/problem/transform-to-chessboard) (Hard)
94. [Trapping Rain Water](https://www.internhack.in/learn/dsa/problem/trapping-rain-water) (Hard)
95. [Word Ladder](https://www.internhack.in/learn/dsa/problem/word-ladder) (Hard)
96. [Word Ladder II](https://www.internhack.in/learn/dsa/problem/word-ladder-ii) (Hard)

## Prepare for the rest of the Citadel process

- [Aptitude questions by company](https://www.internhack.in/learn/aptitude/companies)
- [Technical interview questions](https://www.internhack.in/learn/interview)
- [Free ATS resume check](https://www.internhack.in/ats-score/try), no signup

## Other companies

- [Google](https://www.internhack.in/learn/dsa/companies/google) (2217)
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon) (1938)
- [Meta](https://www.internhack.in/learn/dsa/companies/meta) (1387)
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft) (1352)
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg) (1173)
- [Tiktok](https://www.internhack.in/learn/dsa/companies/tiktok) (383)
- [Uber](https://www.internhack.in/learn/dsa/companies/uber) (381)
- [Apple](https://www.internhack.in/learn/dsa/companies/apple) (356)
- [Oracle](https://www.internhack.in/learn/dsa/companies/oracle) (340)
- [Goldman Sachs](https://www.internhack.in/learn/dsa/companies/goldman-sachs) (270)
- [Adobe](https://www.internhack.in/learn/dsa/companies/adobe) (227)
- [TCS](https://www.internhack.in/learn/dsa/companies/tcs) (217)
- [Salesforce](https://www.internhack.in/learn/dsa/companies/salesforce) (189)
- [Linkedin](https://www.internhack.in/learn/dsa/companies/linkedin) (180)
- [Zoho](https://www.internhack.in/learn/dsa/companies/zoho) (179)
- [IBM](https://www.internhack.in/learn/dsa/companies/ibm) (170)
- [Infosys](https://www.internhack.in/learn/dsa/companies/infosys) (158)
- [Walmart Labs](https://www.internhack.in/learn/dsa/companies/walmart-labs) (152)
- [Accenture](https://www.internhack.in/learn/dsa/companies/accenture) (144)
- [Nvidia](https://www.internhack.in/learn/dsa/companies/nvidia) (137)
- [Yandex](https://www.internhack.in/learn/dsa/companies/yandex) (134)
- [DE Shaw](https://www.internhack.in/learn/dsa/companies/de-shaw) (124)
- [Visa](https://www.internhack.in/learn/dsa/companies/visa) (124)
- [Flipkart](https://www.internhack.in/learn/dsa/companies/flipkart) (117)

## Related

- [Home](https://www.internhack.in/)
- [Learn](https://www.internhack.in/learn)
- [DSA by company](https://www.internhack.in/learn/dsa/companies)
