Microsoft Interview Report
- 1of 1 vote
AnswersYou are given a text file. You have to return the list of starting index of the given word in text file. Design an efficient DS for that.
- neer.1304 September 01, 2017 in United States
Example :-
Text file content : “geeks for geeks”
word : “geeks”
List : {0,10}| Report Duplicate | Flag | PURGE
Microsoft SDE-2 Algorithm - 0of 0 votes
AnswersIn a file, there are two columns, first column has some word (String) and 2nd column has some value (Double).
- neer.1304 September 01, 2017 in United States
Example :-
ABC 23.4
ERF 34.89
WERT 122.9
Now user wants some arithmetic operations like
1) ABC + ERF = 23.4 + 34.89 = 58.29
2) ABC – WERT = 23.4 – 122.9 = -99.5
Design an efficient DS for these kind of operations.| Report Duplicate | Flag | PURGE
Microsoft SDE-2 Algorithm
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.