VMWare Inc Interview Question for MTSs
- 0of 0 votes
String1 -- "aaabb"- vivekkumarraju May 18, 2019 in United States
String2 -- "aaabbbb"
String3 -- "aaabbb"
These are sample strings. The problem stated that a given string has to be cut in such a fashion that the remaining characters in the string, say a and b have same character count. If not, then the method returns false.
In case the string already has characters with same frequency of occurrence as in case 3, then just return true. Return type can be assumed to be Boolean.
Tried to solve problem using substring() method in java by running a loop over the string, but could not arrive at a solution.
| Report Duplicate | Flag | PURGE
VMWare Inc MTS String Manipulation
Interview Type: In-Person