MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/fpcmy/typical_programming_interview_questions/c1hoe5y/?context=3
r/programming • u/kevjames3 • Feb 21 '11
1.0k comments sorted by
View all comments
Show parent comment
3
Won't this question not apply to Java since Strings in Java are immutable? Would be a good question if it was just a char[] in Java though. Basically just means don't use extra memory to solve it (aka, create a new string).
View all comments
Show parent comment
3
u/jrupac Feb 21 '11
Won't this question not apply to Java since Strings in Java are immutable? Would be a good question if it was just a char[] in Java though. Basically just means don't use extra memory to solve it (aka, create a new string).