Strings

Build string skills through character handling, basic text operations, hashing, windows and matching problems for coding interviews.

23 online
Overall Progress
PLUS – Videos, editorials, planner all in one place – Videos, editorials, personalised planner & TUFY all in one place to save your time.

Planly

Know more

Striver’s Strings Sheet contains 60 coding questions, including 14 additional foundation exercises alongside the retained 46-question selection. The beginner practice starts with individual characters, text input, counting, case conversion, spaces, reversal and palindrome checks. Later questions use those skills in string relationships, hashing, windows, matching and more advanced applications.

Read the expected result before selecting a structure. A matching position, a longest substring, a count of subsequences and a list of valid constructions are different outputs. Repetition matters too: equal-looking text can arise from different positions. Establish whether the task counts those choices separately before deciding what your state should remember.

String and character-handling topics covered

Character exercises cover identifying character types, working with an ASCII value, converting between digit characters and integers, changing case and recognizing vowels. Basic string exercises then cover a complete input line, a target-character count, case changes across a string, space removal, reversal and palindrome checks. Similar titles can have different input and output requirements, so each source question keeps its own statement.

  • Character types, ASCII values, digit conversion and case changes.
  • Complete-line input, target-character counts, spaces, reversal and palindromes.
  • String relationships, hashing, windows and matching in the retained interview selection.

Beginner lessons and prerequisites

The beginner learning resources cover basic strings and character handling. Use them to understand positions, string length, reading text with spaces, character comparisons and whether a language allows a string to be changed directly. Be comfortable with input, loops and functions before starting these string exercises.

Know how indexing, traversal and string construction work in your chosen language. Some string types are immutable, so producing a changed result can copy text rather than update one position. Read the allowed alphabet and case rules. A lowercase-English exercise can use a restricted model; general text needs a clearer decision about the units being indexed.

  • Do not assume one displayed symbol always occupies one byte or indexed unit.
  • Use counters that cover every permitted character and retain repeated occurrences.
  • Include copied substrings and result construction when explaining time and space.