Tiktok Coding Interview Questions

383 DSA problems tagged as asked in Tiktok coding interviews and online assessments. Below are the first 100 of 383: 42 easy, 0 medium and 58 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

Tiktok DSA problems, easiest first

  1. Add Strings (Easy)
  2. Add Two Integers (Easy)
  3. Best Time to Buy and Sell Stock (Easy)
  4. Climbing Stairs (Easy)
  5. Convert Sorted Array to Binary Search Tree (Easy)
  6. Count Binary Substrings (Easy)
  7. Count Pairs Of Similar Strings (Easy)
  8. Cousins in Binary Tree (Easy)
  9. Design HashMap (Easy)
  10. Diameter of Binary Tree (Easy)
  11. Greatest Common Divisor of Strings (Easy)
  12. Happy Number (Easy)
  13. Implement Queue using Stacks (Easy)
  14. Intersection of Two Linked Lists (Easy)
  15. Invert Binary Tree (Easy)
  16. Is Subsequence (Easy)
  17. Isomorphic Strings (Easy)
  18. Kth Missing Positive Number (Easy)
  19. Lexicographically Smallest Palindrome (Easy)
  20. Longest Common Prefix (Easy)
  21. Maximum Product of Three Numbers (Easy)
  22. Meeting Rooms (Easy)
  23. Merge Sorted Array (Easy)
  24. Merge Two Sorted Lists (Easy)
  25. Minimum Operations to Make the Array Increasing (Easy)
  26. Move Zeroes (Easy)
  27. Next Greater Element I (Easy)
  28. Path Sum (Easy)
  29. Plus One (Easy)
  30. Reformat Date (Easy)
  31. Reverse Linked List (Easy)
  32. Roman to Integer (Easy)
  33. Sqrt(x) (Easy)
  34. Symmetric Tree (Easy)
  35. Two Sum (Easy)
  36. Valid Anagram (Easy)
  37. Valid Mountain Array (Easy)
  38. Valid Palindrome (Easy)
  39. Valid Palindrome II (Easy)
  40. Valid Parentheses (Easy)
  41. Valid Word Abbreviation (Easy)
  42. Verifying an Alien Dictionary (Easy)
  43. 24 Game (Hard)
  44. Alien Dictionary (Hard)
  45. Basic Calculator (Hard)
  46. Basic Calculator III (Hard)
  47. Best Time to Buy and Sell Stock III (Hard)
  48. Best Time to Buy and Sell Stock IV (Hard)
  49. Binary Tree Maximum Path Sum (Hard)
  50. Bus Routes (Hard)
  51. Candy (Hard)
  52. Concatenated Words (Hard)
  53. Consecutive Numbers Sum (Hard)
  54. Design In-Memory File System (Hard)
  55. Design Search Autocomplete System (Hard)
  56. Distinct Subsequences (Hard)
  57. Employee Free Time (Hard)
  58. Expression Add Operators (Hard)
  59. Find Median from Data Stream (Hard)
  60. First Missing Positive (Hard)
  61. Frog Jump (Hard)
  62. Human Traffic of Stadium (Hard)
  63. Insert Delete GetRandom O(1) - Duplicates allowed (Hard)
  64. K-th Smallest in Lexicographical Order (Hard)
  65. Largest Rectangle in Histogram (Hard)
  66. LFU Cache (Hard)
  67. Longest Increasing Path in a Matrix (Hard)
  68. Longest Valid Parentheses (Hard)
  69. Making A Large Island (Hard)
  70. Max Stack (Hard)
  71. Maximal Rectangle (Hard)
  72. Maximum Frequency Stack (Hard)
  73. Median of Two Sorted Arrays (Hard)
  74. Merge k Sorted Lists (Hard)
  75. Minimize Malware Spread (Hard)
  76. Minimum Window Substring (Hard)
  77. N-Queens (Hard)
  78. Number of Atoms (Hard)
  79. Number of Islands II (Hard)
  80. Numbers At Most N Given Digit Set (Hard)
  81. Rearrange String k Distance Apart (Hard)
  82. Regular Expression Matching (Hard)
  83. Remove Invalid Parentheses (Hard)
  84. Reverse Nodes in k-Group (Hard)
  85. Robot Room Cleaner (Hard)
  86. Serialize and Deserialize Binary Tree (Hard)
  87. Shortest Distance from All Buildings (Hard)
  88. Shortest Palindrome (Hard)
  89. Sliding Window Maximum (Hard)
  90. Stickers to Spell Word (Hard)
  91. Super Egg Drop (Hard)
  92. Text Justification (Hard)
  93. The Skyline Problem (Hard)
  94. Trapping Rain Water (Hard)
  95. Vertical Order Traversal of a Binary Tree (Hard)
  96. Wildcard Matching (Hard)
  97. Word Break II (Hard)
  98. Word Ladder (Hard)
  99. Word Ladder II (Hard)
  100. Word Search II (Hard)

Prepare for the rest of the Tiktok process

Other companies