Turing Coding Interview Questions

40 DSA problems tagged as asked in Turing coding interviews and online assessments. Below are all 40: 12 easy, 24 medium and 4 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

Turing DSA problems, easiest first

  1. Baseball Game (Easy)
  2. Best Time to Buy and Sell Stock (Easy)
  3. Count Square Sum Triples (Easy)
  4. Degree of an Array (Easy)
  5. Find the Town Judge (Easy)
  6. Longest Common Prefix (Easy)
  7. Maximum Repeating Substring (Easy)
  8. Partition Array Into Three Parts With Equal Sum (Easy)
  9. Reverse Only Letters (Easy)
  10. Two Sum (Easy)
  11. Valid Palindrome (Easy)
  12. Valid Parentheses (Easy)
  13. 3Sum (Medium)
  14. Apply Operations to Make Sum of Array Greater Than or Equal to k (Medium)
  15. Consecutive Numbers (Medium)
  16. Find All Anagrams in a String (Medium)
  17. Find Duplicate File in System (Medium)
  18. Find First and Last Position of Element in Sorted Array (Medium)
  19. Group Anagrams (Medium)
  20. Jump Game (Medium)
  21. K Divisible Elements Subarrays (Medium)
  22. Koko Eating Bananas (Medium)
  23. Kth Largest Element in an Array (Medium)
  24. Longest Arithmetic Subsequence (Medium)
  25. Longest Palindromic Substring (Medium)
  26. Longest Substring Without Repeating Characters (Medium)
  27. Maximum Subarray (Medium)
  28. Merge Intervals (Medium)
  29. Minimum Cost For Tickets (Medium)
  30. Minimum Length of Anagram Concatenation (Medium)
  31. Minimum Number of Operations to Make Word K-Periodic (Medium)
  32. Minimum Number of Operations to Satisfy Conditions (Medium)
  33. Number of Islands (Medium)
  34. Product of Array Except Self (Medium)
  35. Sum of Digit Differences of All Pairs (Medium)
  36. Validate IP Address (Medium)
  37. Median of Two Sorted Arrays (Hard)
  38. Minimum Adjacent Swaps for K Consecutive Ones (Hard)
  39. Race Car (Hard)
  40. Regular Expression Matching (Hard)

Prepare for the rest of the Turing process

Other companies