Interview Question for SDE-2s
- 1of 1 vote
Write code/ logic to count number of words in a string delimited by " ". Anything apart form " " are ignore for the counting. String could be very big as big as 5 GB of data. So add logic to handle such large strings..- Jai December 12, 2014 in United States
ex: aaa b c ddd e = Count (5)
aaaaaaaaaaa = Count(1)
Count(1) as there are no spaces rather carriage returns are found.
PS: In case above question is not clear do let me know.
| Report Duplicate | Flag | PURGE
Interview Type: In-Person
Open Chat in New Window