String DSA Problems

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 (Easy)
  2. Add Strings (Easy)
  3. Backspace String Compare (Easy)
  4. Base 7 (Easy)
  5. Binary Tree Paths (Easy)
  6. Buddy Strings (Easy)
  7. Calculate Digit Sum of a String (Easy)
  8. Check Balanced String (Easy)
  9. 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 (Easy)
  11. Check if All A's Appears Before All B's (Easy)
  12. Check if All Characters Have Equal Number of Occurrences (Easy)
  13. Check if Binary String Has at Most One Segment of Ones (Easy)
  14. Check If Digits Are Equal in String After Operations I (Easy)
  15. Check if Number Has Equal Digit Count and Digit Value (Easy)
  16. Check if One String Swap Can Make Strings Equal (Easy)
  17. Check If String Is a Prefix of Array (Easy)
  18. Check if Strings Can be Made Equal With Operations I (Easy)
  19. Check if the Sentence Is Pangram (Easy)
  20. Check if Two Chessboard Squares Have the Same Color (Easy)
  21. Check If Two String Arrays are Equivalent (Easy)
  22. Check Whether Two Strings are Almost Equivalent (Easy)
  23. Circular Sentence (Easy)
  24. Clear Digits (Easy)
  25. Consecutive Characters (Easy)
  26. Convert a Number to Hexadecimal (Easy)
  27. Convert Date to Binary (Easy)
  28. Count Asterisks (Easy)
  29. Count Binary Substrings (Easy)
  30. Count Common Words With One Occurrence (Easy)
  31. Count Items Matching a Rule (Easy)
  32. Count Pairs Of Similar Strings (Easy)
  33. Count Prefix and Suffix Pairs I (Easy)
  34. Count Prefixes of a Given String (Easy)
  35. Count Residue Prefixes (Easy)
  36. Count Substrings That Satisfy K-Constraint I (Easy)
  37. Count Substrings with Only One Distinct Letter (Easy)
  38. Count the Number of Consistent Strings (Easy)
  39. Count the Number of Special Characters I (Easy)
  40. Count the Number of Vowel Strings in Range (Easy)
  41. Count Vowel Substrings of a String (Easy)
  42. Counting Words With a Given Prefix (Easy)
  43. Coupon Code Validator (Easy)
  44. Crawler Log Folder (Easy)
  45. Day of the Year (Easy)
  46. Decode the Message (Easy)
  47. Decrypt String from Alphabet to Integer Mapping (Easy)
  48. Defanging an IP Address (Easy)
  49. Delete Characters to Make Fancy String (Easy)
  50. Delete Columns to Make Sorted (Easy)
  51. Design Compressed String Iterator (Easy)
  52. Destination City (Easy)
  53. Detect Capital (Easy)
  54. Determine Color of a Chessboard Square (Easy)
  55. Determine if String Halves Are Alike (Easy)
  56. Determine if Two Events Have Conflict (Easy)
  57. DI String Match (Easy)
  58. Divide a String Into Groups of Size k (Easy)
  59. Excel Sheet Column Number (Easy)
  60. Excel Sheet Column Title (Easy)
  61. Existence of a Substring in a String and Its Reverse (Easy)
  62. Faulty Keyboard (Easy)
  63. Filter Characters by Frequency (Easy)
  64. Final Value of Variable After Performing Operations (Easy)
  65. Find Common Characters (Easy)
  66. Find First Palindromic String in the Array (Easy)
  67. Find Most Frequent Vowel and Consonant (Easy)
  68. Find Resultant Array After Removing Anagrams (Easy)
  69. Find Special Substring of Length K (Easy)
  70. Find the Difference (Easy)
  71. Find the Index of the First Occurrence in a String (Easy)
  72. Find the K-Beauty of a Number (Easy)
  73. Find the Longest Balanced Substring of a Binary String (Easy)
  74. Find the Original Typed String I (Easy)
  75. Find Valid Pair of Adjacent Digits in String (Easy)
  76. Find Words Containing Character (Easy)
  77. Find Words That Can Be Formed by Characters (Easy)
  78. First Letter to Appear Twice (Easy)
  79. First Unique Character in a String (Easy)
  80. Fizz Buzz (Easy)
  81. Flip Game (Easy)
  82. Furthest Point From Origin (Easy)
  83. Generate a String With Characters That Have Odd Counts (Easy)
  84. Generate Tag for Video Caption (Easy)
  85. Goal Parser Interpretation (Easy)
  86. Goat Latin (Easy)
  87. Greatest Common Divisor of Strings (Easy)
  88. Greatest English Letter in Upper and Lower Case (Easy)
  89. Hexadecimal and Hexatrigesimal Conversion (Easy)
  90. Hexspeak (Easy)
  91. Increasing Decreasing String (Easy)
  92. Index Pairs of a String (Easy)
  93. Is Subsequence (Easy)
  94. Isomorphic Strings (Easy)
  95. Jewels and Stones (Easy)
  96. Keyboard Row (Easy)
  97. Kth Distinct String in an Array (Easy)
  98. Largest 3-Same-Digit Number in String (Easy)
  99. Largest Odd Number in String (Easy)
  100. Largest Substring Between Two Equal Characters (Easy)

Companies that ask string problems

Before your interview

Most resumes are filtered by software before a recruiter reads them. Check your resume ATS score free, no signup needed.

Other DSA topics