r/programming • u/javinpaul • May 30 '19
20+ String Coding Interview Questions for Programmers
https://hackernoon.com/20-string-coding-interview-questions-for-programmers-6b6735b6d31c
0
Upvotes
r/programming • u/javinpaul • May 30 '19
2
u/NedDasty May 30 '19
In the solution to the first example, "How do you reverse a string in place?", they provide a solution that uses a temporary variable, which I would consider as violating the premise of "in-place." There are implementations of swap that don't use a temporary variable (e.g. the xor swap algorithm) which seems more to the letter of the interview question.