Citadel Coding Interview Questions

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 (Easy)
  2. Climbing Stairs (Easy)
  3. Fizz Buzz (Easy)
  4. Moving Average from Data Stream (Easy)
  5. Sqrt(x) (Easy)
  6. Two Sum (Easy)
  7. Binary Tree Zigzag Level Order Traversal (Medium)
  8. Combination Sum (Medium)
  9. Count Number of Maximum Bitwise-OR Subsets (Medium)
  10. Count Primes (Medium)
  11. Course Schedule (Medium)
  12. Course Schedule II (Medium)
  13. Delete and Earn (Medium)
  14. Design A Leaderboard (Medium)
  15. Design Circular Queue (Medium)
  16. Design Front Middle Back Queue (Medium)
  17. Design Tic-Tac-Toe (Medium)
  18. Egg Drop With 2 Eggs and N Floors (Medium)
  19. Evaluate Division (Medium)
  20. Evaluate Reverse Polish Notation (Medium)
  21. Find First and Last Position of Element in Sorted Array (Medium)
  22. Find the Duplicate Number (Medium)
  23. First Completely Painted Row or Column (Medium)
  24. Group Anagrams (Medium)
  25. Implement Trie (Prefix Tree) (Medium)
  26. Insert Delete GetRandom O(1) (Medium)
  27. Integer Break (Medium)
  28. Integer to Roman (Medium)
  29. Koko Eating Bananas (Medium)
  30. Length of Longest Subarray With at Most K Frequency (Medium)
  31. Letter Combinations of a Phone Number (Medium)
  32. Longest Increasing Subsequence (Medium)
  33. Longest Non-decreasing Subarray From Two Arrays (Medium)
  34. Longest Palindromic Substring (Medium)
  35. Longest String Chain (Medium)
  36. LRU Cache (Medium)
  37. Max Consecutive Ones III (Medium)
  38. Maximal Square (Medium)
  39. Maximum Length of Repeated Subarray (Medium)
  40. Maximum Subarray (Medium)
  41. Maximum Total Damage With Spell Casting (Medium)
  42. Meeting Rooms II (Medium)
  43. Meeting Scheduler (Medium)
  44. Merge Intervals (Medium)
  45. Min Stack (Medium)
  46. Minimum Equal Sum of Two Arrays After Replacing Zeros (Medium)
  47. Minimum Knight Moves (Medium)
  48. Next Permutation (Medium)
  49. Number of Dice Rolls With Target Sum (Medium)
  50. Number of Islands (Medium)
  51. Number of Orders in the Backlog (Medium)
  52. Paint House (Medium)
  53. Pairs of Songs With Total Durations Divisible by 60 (Medium)
  54. Palindromic Substrings (Medium)
  55. Perfect Squares (Medium)
  56. Permutations (Medium)
  57. Pow(x, n) (Medium)
  58. Reorganize String (Medium)
  59. Reverse Words in a String (Medium)
  60. Search Suggestions System (Medium)
  61. Simplify Path (Medium)
  62. Smallest Missing Non-negative Integer After Operations (Medium)
  63. Time Based Key-Value Store (Medium)
  64. Validate Binary Search Tree (Medium)
  65. Word Search (Medium)
  66. Best Position for a Service Centre (Hard)
  67. Best Time to Buy and Sell Stock III (Hard)
  68. Best Time to Buy and Sell Stock IV (Hard)
  69. Binary Tree Maximum Path Sum (Hard)
  70. Count Palindromic Subsequences (Hard)
  71. Couples Holding Hands (Hard)
  72. Critical Connections in a Network (Hard)
  73. Design Excel Sum Formula (Hard)
  74. Design Search Autocomplete System (Hard)
  75. Employee Free Time (Hard)
  76. Find Median from Data Stream (Hard)
  77. Find Servers That Handled Most Number of Requests (Hard)
  78. LFU Cache (Hard)
  79. Max Points on a Line (Hard)
  80. Maximum Profit in Job Scheduling (Hard)
  81. Merge k Sorted Lists (Hard)
  82. Minimum Costs Using the Train Line (Hard)
  83. Minimum Operations to Make Numbers Non-positive (Hard)
  84. Optimal Account Balancing (Hard)
  85. Parallel Courses III (Hard)
  86. Rank Transform of a Matrix (Hard)
  87. Reconstruct Itinerary (Hard)
  88. Regular Expression Matching (Hard)
  89. Serialize and Deserialize Binary Tree (Hard)
  90. Sliding Window Maximum (Hard)
  91. Sort Items by Groups Respecting Dependencies (Hard)
  92. Sudoku Solver (Hard)
  93. Transform to Chessboard (Hard)
  94. Trapping Rain Water (Hard)
  95. Word Ladder (Hard)
  96. Word Ladder II (Hard)

Prepare for the rest of the Citadel process

Other companies