jeanclaude
BAN USER
Questions (2)
Comments (3)
Reputation 70
- 0of 0 votes
AnswersSort an array of characters in linear time complexity (and linear space complexity if that's possible).
- jeanclaude in United States for Kindle| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test Sorting - 0of 0 votes
AnswersWrite a code in C for the following:
- jeanclaude in United States
Starting from 1, assign an alphabet to each integer, for e.g. if input is 1 then A should be the output), 2 = B ....... 26 = Z. Similarly, 27 = AA, 28 = AB..........52 = AZ. 702 = ZZ, 703 = AAA and so on. The function takes only one integer argument . for e.g ConvertToAphabet(int x). One additional consideration here is, the user is free to provide any length of integer (bigint long int etc), no restriction there.| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test C
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
This is not a linear solution.. it goes upto O (n^2).
- jeanclaude October 19, 2012Comment hidden because of low score. Click to expand.
0
of 0 vote
Btw, the team I interviewed with uses C/C++ predominantly hence I mentioned in the beginning to write a code in C.
- jeanclaude July 09, 2012Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
This is not a linear solution... goes upto O(n^2).
- jeanclaude October 19, 2012