sjosh.theonlyone
BAN USER
Questions (1)
Comments (3)
Reputation 0
- 0of 0 votes
AnswersGive two ints, return index(0 based) of an int if it is present in another int. For eg. int a = 34, int b = 12345. Function must return 2 since 34 starts in 12345 at index 2.
- sjosh.theonlyone in United States| Report Duplicate | Flag | PURGE
OnMobile Software Engineer / Developer Algorithm
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
divisor in while is constant
so in first itr
rem = 45
second
0
third 0
and so on.....
I am missing something here...?I didnt try it with a compiler..
PS: apologies for reposting....I dnt know what I am doing...time for coffee..
Comment hidden because of low score. Click to expand.
0
of 0 vote
Obviously cannot use library functions.
- sjosh.theonlyone January 21, 2013Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
Thank you all. I did something similar. Cheers. :)
- sjosh.theonlyone January 22, 2013