amitnagar21
BAN USER- 1of 1 vote
AnswersFind the all the sequence from Unsorted array.
- amitnagar21 in India
Example : {2,4,6,8,10,14,11,12,15,7} is the unsorted array. We have to find out possible sequences.
Output would be :
Seq 1 : {2,4,6,8,10,11,12,15}
Seq 2 : {2,4,6,8,10,14,15}
Note : if I pick any element in array than next element would be grater than the previous element.| Report Duplicate | Flag | PURGE
Amazon Arrays - 0of 0 votes
AnswersDesign the ArrayList data structure by using Objecte[] & implement add(), delete() and update(int index) method for ArrayList.
- amitnagar21 in India
Note: Don't use any standard API for extends.
Design aspect :
- How you are making the default size array in grow-able form & how you design delete or update method which can update and shuffle the elements in array[].| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer - 0of 0 votes
AnswersI want to design log in service for banking site.
- amitnagar21 in India
Design consideration :
1. If User try 5 times wrong password than he should block for 1hr
2. User can try log in from different browser too
3. User can log in again with correct password after 1 hr if he lock on last attempt.
Solution consideration :
1. How to design the data structure for maintaining the user sign in
2. How to design thread or any service which can remove the user from data structure after 1 hr| Report Duplicate | Flag | PURGE
Amazon Developer Program Engineer - 0of 0 votes
AnswersThere is integer array like {1,2,4,5,6,1,2,4,3,5,7,2,1}. I want to find the possible combination of pair which sum is 4.
- amitnagar21 in India
input : {1,2,4,5,6,1,2,4,3,5,7,2,1}
output : {1,1,2}, {2,2}, {3,1}, {1,2,1}...etc which make the sum as 4| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Algorithm PHP - 0of 0 votes
AnswersConvert the integer in to string representation of the int value. Example : Like 41 = Forty one, 441 = Fore hundred Forty One , 3441 = Three thousand Fore hundred Forty One....
- amitnagar21 in India| Report Duplicate | Flag | PURGE
Future Group, Mumbai Software Engineer / Developer Coding
Yes. You can select any element in the array and find the seq.
- amitnagar21 April 23, 2012Yes. You can select any element in the array and find the seq.
- amitnagar21 April 23, 2012Thanks for reply.
Can you provide the pseudo code for arraylist implementation ?
It's not only 2 pair, Need to find n number of pairs whose sum is target integer.
Example { 1,1,2}, {3,0,1} etc
Yes. Any pair.
- It's standard sub set sum problem. You can find in google. but I need software implementation.
I am asking about "Longest increasing subsequence" Data Structure problem.
- amitnagar21 April 26, 2012Link : en.wikipedia.org/wiki/Longest_increasing_subsequence_problem
Please let me know if you come across the solution.