Top 50 string manipulation Interview Questions
The most frequently asked string manipulation questions across all roles and companies, ranked by real interview frequency. Updated daily.
Reverse a string using a two-pointer swap approach in linear time.
Dassault SystèmesAArctic Wolf
Keysight TechnologiesImplement in-place reversal and swapping without extra memory using two pointers or arithmetic/XOR.
Boeing
Health Care Solutions At Home
SuperAGIReverse the order of words in a report string while preserving each word and normalizing whitespace.
LeidosHHelmerich & Payne
TencentUse center expansion to find the longest palindromic substring in a Sumo Logic log fragment.
Amazon Lab126
Pocket Gems
Sumo LogicReverse ASCII letters and digits while preserving punctuation, then reverse an integer array in place.
Vericast
Planned Systems International
Calamos InvestmentsCount exact occurrences of a target character in a PlayStation message using a single string traversal.
PlayStation
Keysight Technologies
MphasisFind the longest substring without repeated characters using a sliding window and last-seen index map.
CodeSignal
PhonepeDetermine whether two lowercase words are anagrams using a frequency map in O(n) time.
Microsoft
Times Internet
Boston Children's HospitalSign up to see every question
Create a free account to unlock this list and practice real interview questions.
Compare normalized character signatures to determine whether each pair of strings is an anagram.
AdobeReverse Costar property search strings with PostgreSQL and flag rows whose stored expected value does not match.
Costar