Tuesday, September 2, 2014

Interview Questions - Strings

  • Given a string, return the string with the words reversed "I am good" -> "good am I" .List test cases and if you were crunched on time and only had time to test one test case, which would you pick
  • find the substring count from a string without string functions in java? Given String str = "abcdefghcde"; String find = "cde";   Count occurrences of cde in String str
  • How to replace the space in the string with "ABC" without using extra memory.. string may contain some extra memory. str = "i am chandu" -- str contation more memory...
  • str = "iABCamABCchandu"

No comments:

Post a Comment