Google Interview Report
- 0of 0 votes
AnswersFind all the abbreviations of string:
- ashishsaraswat.iips June 06, 2017 in India for AdsWorld
eg
ABC
SOME Valid abbreviations are :
1BC
2C
3
A1C
AB1
A2
NOT VALID
11C(two numbers cannot occur continuously)| Report Duplicate | Flag | PURGE
Google SDE-2 - 0of 0 votes
AnswersGiven a method
- ashishsaraswat.iips June 06, 2017 in India for AdsWorld
public int getOccurence(int x,int y);
where y is always a single digit number.
So find the number of occurrences of number y in the range x
E.g.
if x=25,y=2
function should return 9(as 22 contains two occurrences of 2) - 2,12,20,21,22,23,24,25| Report Duplicate | Flag | PURGE
Google SDE-2
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.