# Tiktok Coding Interview Questions

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

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

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](https://www.internhack.in/learn/dsa/problem/add-strings) (Easy)
2. [Add Two Integers](https://www.internhack.in/learn/dsa/problem/add-two-integers) (Easy)
3. [Best Time to Buy and Sell Stock](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock) (Easy)
4. [Climbing Stairs](https://www.internhack.in/learn/dsa/problem/climbing-stairs) (Easy)
5. [Convert Sorted Array to Binary Search Tree](https://www.internhack.in/learn/dsa/problem/convert-sorted-array-to-binary-search-tree) (Easy)
6. [Count Binary Substrings](https://www.internhack.in/learn/dsa/problem/count-binary-substrings) (Easy)
7. [Count Pairs Of Similar Strings](https://www.internhack.in/learn/dsa/problem/count-pairs-of-similar-strings) (Easy)
8. [Cousins in Binary Tree](https://www.internhack.in/learn/dsa/problem/cousins-in-binary-tree) (Easy)
9. [Design HashMap](https://www.internhack.in/learn/dsa/problem/design-hashmap) (Easy)
10. [Diameter of Binary Tree](https://www.internhack.in/learn/dsa/problem/diameter-of-binary-tree) (Easy)
11. [Greatest Common Divisor of Strings](https://www.internhack.in/learn/dsa/problem/greatest-common-divisor-of-strings) (Easy)
12. [Happy Number](https://www.internhack.in/learn/dsa/problem/happy-number) (Easy)
13. [Implement Queue using Stacks](https://www.internhack.in/learn/dsa/problem/implement-queue-using-stacks) (Easy)
14. [Intersection of Two Linked Lists](https://www.internhack.in/learn/dsa/problem/intersection-of-two-linked-lists) (Easy)
15. [Invert Binary Tree](https://www.internhack.in/learn/dsa/problem/invert-binary-tree) (Easy)
16. [Is Subsequence](https://www.internhack.in/learn/dsa/problem/is-subsequence) (Easy)
17. [Isomorphic Strings](https://www.internhack.in/learn/dsa/problem/isomorphic-strings) (Easy)
18. [Kth Missing Positive Number](https://www.internhack.in/learn/dsa/problem/kth-missing-positive-number) (Easy)
19. [Lexicographically Smallest Palindrome](https://www.internhack.in/learn/dsa/problem/lexicographically-smallest-palindrome) (Easy)
20. [Longest Common Prefix](https://www.internhack.in/learn/dsa/problem/longest-common-prefix) (Easy)
21. [Maximum Product of Three Numbers](https://www.internhack.in/learn/dsa/problem/maximum-product-of-three-numbers) (Easy)
22. [Meeting Rooms](https://www.internhack.in/learn/dsa/problem/meeting-rooms) (Easy)
23. [Merge Sorted Array](https://www.internhack.in/learn/dsa/problem/merge-sorted-array) (Easy)
24. [Merge Two Sorted Lists](https://www.internhack.in/learn/dsa/problem/merge-two-sorted-lists) (Easy)
25. [Minimum Operations to Make the Array Increasing](https://www.internhack.in/learn/dsa/problem/minimum-operations-to-make-the-array-increasing) (Easy)
26. [Move Zeroes](https://www.internhack.in/learn/dsa/problem/move-zeroes) (Easy)
27. [Next Greater Element I](https://www.internhack.in/learn/dsa/problem/next-greater-element-i) (Easy)
28. [Path Sum](https://www.internhack.in/learn/dsa/problem/path-sum) (Easy)
29. [Plus One](https://www.internhack.in/learn/dsa/problem/plus-one) (Easy)
30. [Reformat Date](https://www.internhack.in/learn/dsa/problem/reformat-date) (Easy)
31. [Reverse Linked List](https://www.internhack.in/learn/dsa/problem/reverse-linked-list) (Easy)
32. [Roman to Integer](https://www.internhack.in/learn/dsa/problem/roman-to-integer) (Easy)
33. [Sqrt(x)](https://www.internhack.in/learn/dsa/problem/sqrtx) (Easy)
34. [Symmetric Tree](https://www.internhack.in/learn/dsa/problem/symmetric-tree) (Easy)
35. [Two Sum](https://www.internhack.in/learn/dsa/problem/two-sum) (Easy)
36. [Valid Anagram](https://www.internhack.in/learn/dsa/problem/valid-anagram) (Easy)
37. [Valid Mountain Array](https://www.internhack.in/learn/dsa/problem/valid-mountain-array) (Easy)
38. [Valid Palindrome](https://www.internhack.in/learn/dsa/problem/valid-palindrome) (Easy)
39. [Valid Palindrome II](https://www.internhack.in/learn/dsa/problem/valid-palindrome-ii) (Easy)
40. [Valid Parentheses](https://www.internhack.in/learn/dsa/problem/valid-parentheses) (Easy)
41. [Valid Word Abbreviation](https://www.internhack.in/learn/dsa/problem/valid-word-abbreviation) (Easy)
42. [Verifying an Alien Dictionary](https://www.internhack.in/learn/dsa/problem/verifying-an-alien-dictionary) (Easy)
43. [24 Game](https://www.internhack.in/learn/dsa/problem/24-game) (Hard)
44. [Alien Dictionary](https://www.internhack.in/learn/dsa/problem/alien-dictionary) (Hard)
45. [Basic Calculator](https://www.internhack.in/learn/dsa/problem/basic-calculator) (Hard)
46. [Basic Calculator III](https://www.internhack.in/learn/dsa/problem/basic-calculator-iii) (Hard)
47. [Best Time to Buy and Sell Stock III](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock-iii) (Hard)
48. [Best Time to Buy and Sell Stock IV](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock-iv) (Hard)
49. [Binary Tree Maximum Path Sum](https://www.internhack.in/learn/dsa/problem/binary-tree-maximum-path-sum) (Hard)
50. [Bus Routes](https://www.internhack.in/learn/dsa/problem/bus-routes) (Hard)
51. [Candy](https://www.internhack.in/learn/dsa/problem/candy) (Hard)
52. [Concatenated Words](https://www.internhack.in/learn/dsa/problem/concatenated-words) (Hard)
53. [Consecutive Numbers Sum](https://www.internhack.in/learn/dsa/problem/consecutive-numbers-sum) (Hard)
54. [Design In-Memory File System](https://www.internhack.in/learn/dsa/problem/design-in-memory-file-system) (Hard)
55. [Design Search Autocomplete System](https://www.internhack.in/learn/dsa/problem/design-search-autocomplete-system) (Hard)
56. [Distinct Subsequences](https://www.internhack.in/learn/dsa/problem/distinct-subsequences) (Hard)
57. [Employee Free Time](https://www.internhack.in/learn/dsa/problem/employee-free-time) (Hard)
58. [Expression Add Operators](https://www.internhack.in/learn/dsa/problem/expression-add-operators) (Hard)
59. [Find Median from Data Stream](https://www.internhack.in/learn/dsa/problem/find-median-from-data-stream) (Hard)
60. [First Missing Positive](https://www.internhack.in/learn/dsa/problem/first-missing-positive) (Hard)
61. [Frog Jump](https://www.internhack.in/learn/dsa/problem/frog-jump) (Hard)
62. [Human Traffic of Stadium](https://www.internhack.in/learn/dsa/problem/human-traffic-of-stadium) (Hard)
63. [Insert Delete GetRandom O(1) - Duplicates allowed](https://www.internhack.in/learn/dsa/problem/insert-delete-getrandom-o1-duplicates-allowed) (Hard)
64. [K-th Smallest in Lexicographical Order](https://www.internhack.in/learn/dsa/problem/k-th-smallest-in-lexicographical-order) (Hard)
65. [Largest Rectangle in Histogram](https://www.internhack.in/learn/dsa/problem/largest-rectangle-in-histogram) (Hard)
66. [LFU Cache](https://www.internhack.in/learn/dsa/problem/lfu-cache) (Hard)
67. [Longest Increasing Path in a Matrix](https://www.internhack.in/learn/dsa/problem/longest-increasing-path-in-a-matrix) (Hard)
68. [Longest Valid Parentheses](https://www.internhack.in/learn/dsa/problem/longest-valid-parentheses) (Hard)
69. [Making A Large Island](https://www.internhack.in/learn/dsa/problem/making-a-large-island) (Hard)
70. [Max Stack](https://www.internhack.in/learn/dsa/problem/max-stack) (Hard)
71. [Maximal Rectangle](https://www.internhack.in/learn/dsa/problem/maximal-rectangle) (Hard)
72. [Maximum Frequency Stack](https://www.internhack.in/learn/dsa/problem/maximum-frequency-stack) (Hard)
73. [Median of Two Sorted Arrays](https://www.internhack.in/learn/dsa/problem/median-of-two-sorted-arrays) (Hard)
74. [Merge k Sorted Lists](https://www.internhack.in/learn/dsa/problem/merge-k-sorted-lists) (Hard)
75. [Minimize Malware Spread](https://www.internhack.in/learn/dsa/problem/minimize-malware-spread) (Hard)
76. [Minimum Window Substring](https://www.internhack.in/learn/dsa/problem/minimum-window-substring) (Hard)
77. [N-Queens](https://www.internhack.in/learn/dsa/problem/n-queens) (Hard)
78. [Number of Atoms](https://www.internhack.in/learn/dsa/problem/number-of-atoms) (Hard)
79. [Number of Islands II](https://www.internhack.in/learn/dsa/problem/number-of-islands-ii) (Hard)
80. [Numbers At Most N Given Digit Set](https://www.internhack.in/learn/dsa/problem/numbers-at-most-n-given-digit-set) (Hard)
81. [Rearrange String k Distance Apart](https://www.internhack.in/learn/dsa/problem/rearrange-string-k-distance-apart) (Hard)
82. [Regular Expression Matching](https://www.internhack.in/learn/dsa/problem/regular-expression-matching) (Hard)
83. [Remove Invalid Parentheses](https://www.internhack.in/learn/dsa/problem/remove-invalid-parentheses) (Hard)
84. [Reverse Nodes in k-Group](https://www.internhack.in/learn/dsa/problem/reverse-nodes-in-k-group) (Hard)
85. [Robot Room Cleaner](https://www.internhack.in/learn/dsa/problem/robot-room-cleaner) (Hard)
86. [Serialize and Deserialize Binary Tree](https://www.internhack.in/learn/dsa/problem/serialize-and-deserialize-binary-tree) (Hard)
87. [Shortest Distance from All Buildings](https://www.internhack.in/learn/dsa/problem/shortest-distance-from-all-buildings) (Hard)
88. [Shortest Palindrome](https://www.internhack.in/learn/dsa/problem/shortest-palindrome) (Hard)
89. [Sliding Window Maximum](https://www.internhack.in/learn/dsa/problem/sliding-window-maximum) (Hard)
90. [Stickers to Spell Word](https://www.internhack.in/learn/dsa/problem/stickers-to-spell-word) (Hard)
91. [Super Egg Drop](https://www.internhack.in/learn/dsa/problem/super-egg-drop) (Hard)
92. [Text Justification](https://www.internhack.in/learn/dsa/problem/text-justification) (Hard)
93. [The Skyline Problem](https://www.internhack.in/learn/dsa/problem/the-skyline-problem) (Hard)
94. [Trapping Rain Water](https://www.internhack.in/learn/dsa/problem/trapping-rain-water) (Hard)
95. [Vertical Order Traversal of a Binary Tree](https://www.internhack.in/learn/dsa/problem/vertical-order-traversal-of-a-binary-tree) (Hard)
96. [Wildcard Matching](https://www.internhack.in/learn/dsa/problem/wildcard-matching) (Hard)
97. [Word Break II](https://www.internhack.in/learn/dsa/problem/word-break-ii) (Hard)
98. [Word Ladder](https://www.internhack.in/learn/dsa/problem/word-ladder) (Hard)
99. [Word Ladder II](https://www.internhack.in/learn/dsa/problem/word-ladder-ii) (Hard)
100. [Word Search II](https://www.internhack.in/learn/dsa/problem/word-search-ii) (Hard)

## Prepare for the rest of the Tiktok 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)
- [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)
- [Paypal](https://www.internhack.in/learn/dsa/companies/paypal) (106)

## Related

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