Amazon Interview Report
- -1of 1 vote
Answeryou have n different array, all are sorted. form one array of size n whose range is min. meaning in resultant array diff of a[0] to a[n-1] is min.
- sameer.careercup January 26, 2014 in India| Report Duplicate | Flag | PURGE
Amazon SDE1 - -1of 1 vote
Answersyou have a array which says the order of alphabets say [abcdef....z]. now use this array to sort, constraint is 'a' can be swapped one time 'b' two times, and for sorting you can use only swap.
- sameer.careercup January 26, 2014 in India| Report Duplicate | Flag | PURGE
Amazon SDE1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.