# String DSA Problems

> 775 String coding problems for placements and interviews, sorted easiest first, with hints and company tags. Free practice on InternHack.

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

775 string problems for coding interviews and campus placements, with hints and company tags. Below are the first 100 of 775: 100 easy, 0 medium and 0 hard. Practise them free on InternHack and track what you have solved.

## String problems, easiest first

1. [Add Binary](https://www.internhack.in/learn/dsa/problem/add-binary) (Easy)
2. [Add Strings](https://www.internhack.in/learn/dsa/problem/add-strings) (Easy)
3. [Backspace String Compare](https://www.internhack.in/learn/dsa/problem/backspace-string-compare) (Easy)
4. [Base 7](https://www.internhack.in/learn/dsa/problem/base-7) (Easy)
5. [Binary Tree Paths](https://www.internhack.in/learn/dsa/problem/binary-tree-paths) (Easy)
6. [Buddy Strings](https://www.internhack.in/learn/dsa/problem/buddy-strings) (Easy)
7. [Calculate Digit Sum of a String](https://www.internhack.in/learn/dsa/problem/calculate-digit-sum-of-a-string) (Easy)
8. [Check Balanced String](https://www.internhack.in/learn/dsa/problem/check-balanced-string) (Easy)
9. [Check if a String Is an Acronym of Words](https://www.internhack.in/learn/dsa/problem/check-if-a-string-is-an-acronym-of-words) (Easy)
10. [Check If a Word Occurs As a Prefix of Any Word in a Sentence](https://www.internhack.in/learn/dsa/problem/check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence) (Easy)
11. [Check if All A's Appears Before All B's](https://www.internhack.in/learn/dsa/problem/check-if-all-as-appears-before-all-bs) (Easy)
12. [Check if All Characters Have Equal Number of Occurrences](https://www.internhack.in/learn/dsa/problem/check-if-all-characters-have-equal-number-of-occurrences) (Easy)
13. [Check if Binary String Has at Most One Segment of Ones](https://www.internhack.in/learn/dsa/problem/check-if-binary-string-has-at-most-one-segment-of-ones) (Easy)
14. [Check If Digits Are Equal in String After Operations I](https://www.internhack.in/learn/dsa/problem/check-if-digits-are-equal-in-string-after-operations-i) (Easy)
15. [Check if Number Has Equal Digit Count and Digit Value](https://www.internhack.in/learn/dsa/problem/check-if-number-has-equal-digit-count-and-digit-value) (Easy)
16. [Check if One String Swap Can Make Strings Equal](https://www.internhack.in/learn/dsa/problem/check-if-one-string-swap-can-make-strings-equal) (Easy)
17. [Check If String Is a Prefix of Array](https://www.internhack.in/learn/dsa/problem/check-if-string-is-a-prefix-of-array) (Easy)
18. [Check if Strings Can be Made Equal With Operations I](https://www.internhack.in/learn/dsa/problem/check-if-strings-can-be-made-equal-with-operations-i) (Easy)
19. [Check if the Sentence Is Pangram](https://www.internhack.in/learn/dsa/problem/check-if-the-sentence-is-pangram) (Easy)
20. [Check if Two Chessboard Squares Have the Same Color](https://www.internhack.in/learn/dsa/problem/check-if-two-chessboard-squares-have-the-same-color) (Easy)
21. [Check If Two String Arrays are Equivalent](https://www.internhack.in/learn/dsa/problem/check-if-two-string-arrays-are-equivalent) (Easy)
22. [Check Whether Two Strings are Almost Equivalent](https://www.internhack.in/learn/dsa/problem/check-whether-two-strings-are-almost-equivalent) (Easy)
23. [Circular Sentence](https://www.internhack.in/learn/dsa/problem/circular-sentence) (Easy)
24. [Clear Digits](https://www.internhack.in/learn/dsa/problem/clear-digits) (Easy)
25. [Consecutive Characters](https://www.internhack.in/learn/dsa/problem/consecutive-characters) (Easy)
26. [Convert a Number to Hexadecimal](https://www.internhack.in/learn/dsa/problem/convert-a-number-to-hexadecimal) (Easy)
27. [Convert Date to Binary](https://www.internhack.in/learn/dsa/problem/convert-date-to-binary) (Easy)
28. [Count Asterisks](https://www.internhack.in/learn/dsa/problem/count-asterisks) (Easy)
29. [Count Binary Substrings](https://www.internhack.in/learn/dsa/problem/count-binary-substrings) (Easy)
30. [Count Common Words With One Occurrence](https://www.internhack.in/learn/dsa/problem/count-common-words-with-one-occurrence) (Easy)
31. [Count Items Matching a Rule](https://www.internhack.in/learn/dsa/problem/count-items-matching-a-rule) (Easy)
32. [Count Pairs Of Similar Strings](https://www.internhack.in/learn/dsa/problem/count-pairs-of-similar-strings) (Easy)
33. [Count Prefix and Suffix Pairs I](https://www.internhack.in/learn/dsa/problem/count-prefix-and-suffix-pairs-i) (Easy)
34. [Count Prefixes of a Given String](https://www.internhack.in/learn/dsa/problem/count-prefixes-of-a-given-string) (Easy)
35. [Count Residue Prefixes](https://www.internhack.in/learn/dsa/problem/count-residue-prefixes) (Easy)
36. [Count Substrings That Satisfy K-Constraint I](https://www.internhack.in/learn/dsa/problem/count-substrings-that-satisfy-k-constraint-i) (Easy)
37. [Count Substrings with Only One Distinct Letter](https://www.internhack.in/learn/dsa/problem/count-substrings-with-only-one-distinct-letter) (Easy)
38. [Count the Number of Consistent Strings](https://www.internhack.in/learn/dsa/problem/count-the-number-of-consistent-strings) (Easy)
39. [Count the Number of Special Characters I](https://www.internhack.in/learn/dsa/problem/count-the-number-of-special-characters-i) (Easy)
40. [Count the Number of Vowel Strings in Range](https://www.internhack.in/learn/dsa/problem/count-the-number-of-vowel-strings-in-range) (Easy)
41. [Count Vowel Substrings of a String](https://www.internhack.in/learn/dsa/problem/count-vowel-substrings-of-a-string) (Easy)
42. [Counting Words With a Given Prefix](https://www.internhack.in/learn/dsa/problem/counting-words-with-a-given-prefix) (Easy)
43. [Coupon Code Validator](https://www.internhack.in/learn/dsa/problem/coupon-code-validator) (Easy)
44. [Crawler Log Folder](https://www.internhack.in/learn/dsa/problem/crawler-log-folder) (Easy)
45. [Day of the Year](https://www.internhack.in/learn/dsa/problem/day-of-the-year) (Easy)
46. [Decode the Message](https://www.internhack.in/learn/dsa/problem/decode-the-message) (Easy)
47. [Decrypt String from Alphabet to Integer Mapping](https://www.internhack.in/learn/dsa/problem/decrypt-string-from-alphabet-to-integer-mapping) (Easy)
48. [Defanging an IP Address](https://www.internhack.in/learn/dsa/problem/defanging-an-ip-address) (Easy)
49. [Delete Characters to Make Fancy String](https://www.internhack.in/learn/dsa/problem/delete-characters-to-make-fancy-string) (Easy)
50. [Delete Columns to Make Sorted](https://www.internhack.in/learn/dsa/problem/delete-columns-to-make-sorted) (Easy)
51. [Design Compressed String Iterator](https://www.internhack.in/learn/dsa/problem/design-compressed-string-iterator) (Easy)
52. [Destination City](https://www.internhack.in/learn/dsa/problem/destination-city) (Easy)
53. [Detect Capital](https://www.internhack.in/learn/dsa/problem/detect-capital) (Easy)
54. [Determine Color of a Chessboard Square](https://www.internhack.in/learn/dsa/problem/determine-color-of-a-chessboard-square) (Easy)
55. [Determine if String Halves Are Alike](https://www.internhack.in/learn/dsa/problem/determine-if-string-halves-are-alike) (Easy)
56. [Determine if Two Events Have Conflict](https://www.internhack.in/learn/dsa/problem/determine-if-two-events-have-conflict) (Easy)
57. [DI String Match](https://www.internhack.in/learn/dsa/problem/di-string-match) (Easy)
58. [Divide a String Into Groups of Size k](https://www.internhack.in/learn/dsa/problem/divide-a-string-into-groups-of-size-k) (Easy)
59. [Excel Sheet Column Number](https://www.internhack.in/learn/dsa/problem/excel-sheet-column-number) (Easy)
60. [Excel Sheet Column Title](https://www.internhack.in/learn/dsa/problem/excel-sheet-column-title) (Easy)
61. [Existence of a Substring in a String and Its Reverse](https://www.internhack.in/learn/dsa/problem/existence-of-a-substring-in-a-string-and-its-reverse) (Easy)
62. [Faulty Keyboard](https://www.internhack.in/learn/dsa/problem/faulty-keyboard) (Easy)
63. [Filter Characters by Frequency](https://www.internhack.in/learn/dsa/problem/filter-characters-by-frequency) (Easy)
64. [Final Value of Variable After Performing Operations](https://www.internhack.in/learn/dsa/problem/final-value-of-variable-after-performing-operations) (Easy)
65. [Find Common Characters](https://www.internhack.in/learn/dsa/problem/find-common-characters) (Easy)
66. [Find First Palindromic String in the Array](https://www.internhack.in/learn/dsa/problem/find-first-palindromic-string-in-the-array) (Easy)
67. [Find Most Frequent Vowel and Consonant](https://www.internhack.in/learn/dsa/problem/find-most-frequent-vowel-and-consonant) (Easy)
68. [Find Resultant Array After Removing Anagrams](https://www.internhack.in/learn/dsa/problem/find-resultant-array-after-removing-anagrams) (Easy)
69. [Find Special Substring of Length K](https://www.internhack.in/learn/dsa/problem/find-special-substring-of-length-k) (Easy)
70. [Find the Difference](https://www.internhack.in/learn/dsa/problem/find-the-difference) (Easy)
71. [Find the Index of the First Occurrence in a String](https://www.internhack.in/learn/dsa/problem/find-the-index-of-the-first-occurrence-in-a-string) (Easy)
72. [Find the K-Beauty of a Number](https://www.internhack.in/learn/dsa/problem/find-the-k-beauty-of-a-number) (Easy)
73. [Find the Longest Balanced Substring of a Binary String](https://www.internhack.in/learn/dsa/problem/find-the-longest-balanced-substring-of-a-binary-string) (Easy)
74. [Find the Original Typed String I](https://www.internhack.in/learn/dsa/problem/find-the-original-typed-string-i) (Easy)
75. [Find Valid Pair of Adjacent Digits in String](https://www.internhack.in/learn/dsa/problem/find-valid-pair-of-adjacent-digits-in-string) (Easy)
76. [Find Words Containing Character](https://www.internhack.in/learn/dsa/problem/find-words-containing-character) (Easy)
77. [Find Words That Can Be Formed by Characters](https://www.internhack.in/learn/dsa/problem/find-words-that-can-be-formed-by-characters) (Easy)
78. [First Letter to Appear Twice](https://www.internhack.in/learn/dsa/problem/first-letter-to-appear-twice) (Easy)
79. [First Unique Character in a String](https://www.internhack.in/learn/dsa/problem/first-unique-character-in-a-string) (Easy)
80. [Fizz Buzz](https://www.internhack.in/learn/dsa/problem/fizz-buzz) (Easy)
81. [Flip Game](https://www.internhack.in/learn/dsa/problem/flip-game) (Easy)
82. [Furthest Point From Origin](https://www.internhack.in/learn/dsa/problem/furthest-point-from-origin) (Easy)
83. [Generate a String With Characters That Have Odd Counts](https://www.internhack.in/learn/dsa/problem/generate-a-string-with-characters-that-have-odd-counts) (Easy)
84. [Generate Tag for Video Caption](https://www.internhack.in/learn/dsa/problem/generate-tag-for-video-caption) (Easy)
85. [Goal Parser Interpretation](https://www.internhack.in/learn/dsa/problem/goal-parser-interpretation) (Easy)
86. [Goat Latin](https://www.internhack.in/learn/dsa/problem/goat-latin) (Easy)
87. [Greatest Common Divisor of Strings](https://www.internhack.in/learn/dsa/problem/greatest-common-divisor-of-strings) (Easy)
88. [Greatest English Letter in Upper and Lower Case](https://www.internhack.in/learn/dsa/problem/greatest-english-letter-in-upper-and-lower-case) (Easy)
89. [Hexadecimal and Hexatrigesimal Conversion](https://www.internhack.in/learn/dsa/problem/hexadecimal-and-hexatrigesimal-conversion) (Easy)
90. [Hexspeak](https://www.internhack.in/learn/dsa/problem/hexspeak) (Easy)
91. [Increasing Decreasing String](https://www.internhack.in/learn/dsa/problem/increasing-decreasing-string) (Easy)
92. [Index Pairs of a String](https://www.internhack.in/learn/dsa/problem/index-pairs-of-a-string) (Easy)
93. [Is Subsequence](https://www.internhack.in/learn/dsa/problem/is-subsequence) (Easy)
94. [Isomorphic Strings](https://www.internhack.in/learn/dsa/problem/isomorphic-strings) (Easy)
95. [Jewels and Stones](https://www.internhack.in/learn/dsa/problem/jewels-and-stones) (Easy)
96. [Keyboard Row](https://www.internhack.in/learn/dsa/problem/keyboard-row) (Easy)
97. [Kth Distinct String in an Array](https://www.internhack.in/learn/dsa/problem/kth-distinct-string-in-an-array) (Easy)
98. [Largest 3-Same-Digit Number in String](https://www.internhack.in/learn/dsa/problem/largest-3-same-digit-number-in-string) (Easy)
99. [Largest Odd Number in String](https://www.internhack.in/learn/dsa/problem/largest-odd-number-in-string) (Easy)
100. [Largest Substring Between Two Equal Characters](https://www.internhack.in/learn/dsa/problem/largest-substring-between-two-equal-characters) (Easy)

## Companies that ask string problems

- [Google](https://www.internhack.in/learn/dsa/companies/google): 68 of these problems
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon): 56 of these problems
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg): 43 of these problems
- [Meta](https://www.internhack.in/learn/dsa/companies/meta): 43 of these problems
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft): 40 of these problems
- [Oracle](https://www.internhack.in/learn/dsa/companies/oracle): 12 of these problems
- [Zoho](https://www.internhack.in/learn/dsa/companies/zoho): 10 of these problems
- [Apple](https://www.internhack.in/learn/dsa/companies/apple): 9 of these problems
- [IBM](https://www.internhack.in/learn/dsa/companies/ibm): 8 of these problems
- [Goldman Sachs](https://www.internhack.in/learn/dsa/companies/goldman-sachs): 8 of these problems
- [TCS](https://www.internhack.in/learn/dsa/companies/tcs): 7 of these problems
- [Uber](https://www.internhack.in/learn/dsa/companies/uber): 7 of these problems

## Before your interview

Most resumes are filtered by software before a recruiter reads them. [Check your resume ATS score free](https://www.internhack.in/ats-score/try), no signup needed.

## Other DSA topics

- [Array](https://www.internhack.in/learn/dsa/array) (1869)
- [Hash Table](https://www.internhack.in/learn/dsa/hash-table) (708)
- [Math](https://www.internhack.in/learn/dsa/math) (564)
- [Dynamic Programming](https://www.internhack.in/learn/dsa/dynamic-programming) (557)
- [Sorting](https://www.internhack.in/learn/dsa/sorting) (464)
- [Greedy](https://www.internhack.in/learn/dsa/greedy) (407)
- [Depth-First Search](https://www.internhack.in/learn/dsa/depth-first-search) (314)
- [Binary Search](https://www.internhack.in/learn/dsa/binary-search) (298)
- [Matrix](https://www.internhack.in/learn/dsa/matrix) (246)
- [Breadth-First Search](https://www.internhack.in/learn/dsa/breadth-first-search) (245)
- [Bit Manipulation](https://www.internhack.in/learn/dsa/bit-manipulation) (238)
- [Tree](https://www.internhack.in/learn/dsa/tree) (235)
- [Two Pointers](https://www.internhack.in/learn/dsa/two-pointers) (217)
- [Prefix Sum](https://www.internhack.in/learn/dsa/prefix-sum) (204)
- [Database](https://www.internhack.in/learn/dsa/database) (197)
- [Heap (Priority Queue)](https://www.internhack.in/learn/dsa/heap-priority-queue) (196)
- [Simulation](https://www.internhack.in/learn/dsa/simulation) (177)
- [Counting](https://www.internhack.in/learn/dsa/counting) (174)
- [Binary Tree](https://www.internhack.in/learn/dsa/binary-tree) (169)
- [Stack](https://www.internhack.in/learn/dsa/stack) (167)

## Related

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