r/compsci • • May 17 '19

20+ String Coding Interview Questions for Programmers

https://hackernoon.com/20-string-coding-interview-questions-for-programmers-6b6735b6d31c
113 Upvotes

41 comments sorted by

View all comments

15

u/chrism239 May 17 '19

I'm wondering how many programmers, working on a 'real' project, have ever needed to reverse the characters in a string, or the words in a sentence, or needed to check for palindromes? Just wondering.

4

u/icendoan May 17 '19

Sure. It's not a bad question because you're not expected to do exactly that; the idea is that you can apply algorithmic thinking to a problem. If it's an interview, you want to do it quickly, and not spend hours hashing out all the real world edge cases.

12

u/[deleted] May 17 '19

[removed] — view removed comment

1

u/[deleted] May 18 '19

My current company asked me to implement a binary parser from a set of requirements in the comfort of my own home. That's really when I knew I wanted to work there.