disaster007
BAN USER- 0of 0 votes
AnswerDesign a suggestions list [system design] for words starting with prefix that user has typed on kindle device . The search is based on most frequent item occurring at the top to least frequent item at the bottom. Most frequent item depends on the usage of word globally.
- disaster007 in United States for Prime
For e.g user types "dra" . There should be a list of suggestions starting with dra such as dragon, drape, dracula etc based on their frequency of usage.| Report Duplicate | Flag | PURGE
Amazon SDE1 - 0of 0 votes
AnswersDesign a image slide show 1) put image method 2) get image 3) random method. Random method should return a list of images such that images should be in randomized order and no image should be displayed twice without exhausting all images at once. I used list to store images . I used random class to generate randomly generated images based on the interval {0,list.size()}. But he insist on using randomization without depending on the list size.
- disaster007 in United States for Prime| Report Duplicate | Flag | PURGE
Amazon SDE1 - 0of 0 votes
AnswerGiven a set of points in a plane, determine the position/angle where a yacht of 30 degree angle could be placed such that it could cover maximum points
- disaster007 in United States for Prime| Report Duplicate | Flag | PURGE
Amazon SDE1
Sliding Window to find the angle of 30 degree difference such that covers max points. Cache values when window increase 30 degrees.
- disaster007 June 28, 2017
- disaster007 June 30, 2017