# Turing Coding Interview Questions

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

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

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](https://www.internhack.in/learn/dsa/problem/baseball-game) (Easy)
2. [Best Time to Buy and Sell Stock](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock) (Easy)
3. [Count Square Sum Triples](https://www.internhack.in/learn/dsa/problem/count-square-sum-triples) (Easy)
4. [Degree of an Array](https://www.internhack.in/learn/dsa/problem/degree-of-an-array) (Easy)
5. [Find the Town Judge](https://www.internhack.in/learn/dsa/problem/find-the-town-judge) (Easy)
6. [Longest Common Prefix](https://www.internhack.in/learn/dsa/problem/longest-common-prefix) (Easy)
7. [Maximum Repeating Substring](https://www.internhack.in/learn/dsa/problem/maximum-repeating-substring) (Easy)
8. [Partition Array Into Three Parts With Equal Sum](https://www.internhack.in/learn/dsa/problem/partition-array-into-three-parts-with-equal-sum) (Easy)
9. [Reverse Only Letters](https://www.internhack.in/learn/dsa/problem/reverse-only-letters) (Easy)
10. [Two Sum](https://www.internhack.in/learn/dsa/problem/two-sum) (Easy)
11. [Valid Palindrome](https://www.internhack.in/learn/dsa/problem/valid-palindrome) (Easy)
12. [Valid Parentheses](https://www.internhack.in/learn/dsa/problem/valid-parentheses) (Easy)
13. [3Sum](https://www.internhack.in/learn/dsa/problem/3sum) (Medium)
14. [Apply Operations to Make Sum of Array Greater Than or Equal to k](https://www.internhack.in/learn/dsa/problem/apply-operations-to-make-sum-of-array-greater-than-or-equal-to-k) (Medium)
15. [Consecutive Numbers](https://www.internhack.in/learn/dsa/problem/consecutive-numbers) (Medium)
16. [Find All Anagrams in a String](https://www.internhack.in/learn/dsa/problem/find-all-anagrams-in-a-string) (Medium)
17. [Find Duplicate File in System](https://www.internhack.in/learn/dsa/problem/find-duplicate-file-in-system) (Medium)
18. [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)
19. [Group Anagrams](https://www.internhack.in/learn/dsa/problem/group-anagrams) (Medium)
20. [Jump Game](https://www.internhack.in/learn/dsa/problem/jump-game) (Medium)
21. [K Divisible Elements Subarrays](https://www.internhack.in/learn/dsa/problem/k-divisible-elements-subarrays) (Medium)
22. [Koko Eating Bananas](https://www.internhack.in/learn/dsa/problem/koko-eating-bananas) (Medium)
23. [Kth Largest Element in an Array](https://www.internhack.in/learn/dsa/problem/kth-largest-element-in-an-array) (Medium)
24. [Longest Arithmetic Subsequence](https://www.internhack.in/learn/dsa/problem/longest-arithmetic-subsequence) (Medium)
25. [Longest Palindromic Substring](https://www.internhack.in/learn/dsa/problem/longest-palindromic-substring) (Medium)
26. [Longest Substring Without Repeating Characters](https://www.internhack.in/learn/dsa/problem/longest-substring-without-repeating-characters) (Medium)
27. [Maximum Subarray](https://www.internhack.in/learn/dsa/problem/maximum-subarray) (Medium)
28. [Merge Intervals](https://www.internhack.in/learn/dsa/problem/merge-intervals) (Medium)
29. [Minimum Cost For Tickets](https://www.internhack.in/learn/dsa/problem/minimum-cost-for-tickets) (Medium)
30. [Minimum Length of Anagram Concatenation](https://www.internhack.in/learn/dsa/problem/minimum-length-of-anagram-concatenation) (Medium)
31. [Minimum Number of Operations to Make Word K-Periodic](https://www.internhack.in/learn/dsa/problem/minimum-number-of-operations-to-make-word-k-periodic) (Medium)
32. [Minimum Number of Operations to Satisfy Conditions](https://www.internhack.in/learn/dsa/problem/minimum-number-of-operations-to-satisfy-conditions) (Medium)
33. [Number of Islands](https://www.internhack.in/learn/dsa/problem/number-of-islands) (Medium)
34. [Product of Array Except Self](https://www.internhack.in/learn/dsa/problem/product-of-array-except-self) (Medium)
35. [Sum of Digit Differences of All Pairs](https://www.internhack.in/learn/dsa/problem/sum-of-digit-differences-of-all-pairs) (Medium)
36. [Validate IP Address](https://www.internhack.in/learn/dsa/problem/validate-ip-address) (Medium)
37. [Median of Two Sorted Arrays](https://www.internhack.in/learn/dsa/problem/median-of-two-sorted-arrays) (Hard)
38. [Minimum Adjacent Swaps for K Consecutive Ones](https://www.internhack.in/learn/dsa/problem/minimum-adjacent-swaps-for-k-consecutive-ones) (Hard)
39. [Race Car](https://www.internhack.in/learn/dsa/problem/race-car) (Hard)
40. [Regular Expression Matching](https://www.internhack.in/learn/dsa/problem/regular-expression-matching) (Hard)

## Prepare for the rest of the Turing 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)
