akisonlyforu
BAN USER
Questions (5)
Followers (1)
Reputation 60
- 0of 0 votes
AnswersGiven a BST of memory sizes. Find best fit for a memory block of size M.
- akisonlyforu in India| Report Duplicate | Flag | PURGE
Amazon SDE1 Data Structures - 0of 0 votes
AnswersYou have been given a generator string ab from which any number of strings can be generated recursively by inserting ‘ab’ at any location. You have been given an input string to check if that given string is valid or not.(i.e. generated by given with given string.)
- akisonlyforu in India
eg.
Input: aabbab
Output: valid
Input: abbaab
Output: Invalid
I could not come up with a algorithm less than O(N*N)| Report Duplicate | Flag | PURGE
Amazon SDE1 Algorithm
Page:
1
Page:
1
RepI am Susan From Wasilla USA. and my strong interest in yoga and reading historical books. I have a large ...
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.