Big Fish Interview Report
- 0of 0 votes
AnswersGiven 2 sorted lists that are of even and equal size, output the median. If there is no middle number, return the average of the 2 middle numbers
- valheru April 23, 2014 in United States| Report Duplicate | Flag | PURGE
Big Fish iOS Developer Sorting Amazon SDE-2 Algorithm - 0of 0 votes
AnswersGiven the following filename/rules:
- valheru April 23, 2014 in United States
johndoe_sdfjkldfj_ldfjlkfdsjfds_dfdjklfdsjs.txt
Rules:
johndoe is a distinct identifier (not a constant)
any following items are tacked on with underscores separating them and each token contains a key value pair. The key is the first character and the value is the remaining characters.
Parse this filename and return a dictionary/hashtable of values, removing any file extensions but also keeping in mind that this filename could end up with incorrect characters or incorrect amounts of characters.
Example input:
johndoe_sdfjkldfj_ldfjlkfdsjfds_dfdjklfdsjs.txt
Example output:
@{ @"NAME" : @"johndoe",
@"s" : @"dfjkldfj",
@"l" : @"dfjlkfdsjfds",
@"d": @"fdjklfdsjs"
};
Followup: How would you handle it if you found multiple tokens with the same key?| Report Duplicate | Flag | PURGE
Big Fish iOS Developer Algorithm - 0of 0 votes
AnswersDesign and code the logic software for an elevator, pretending like the hardware is already there for you with the following APIs:
- valheru April 23, 2014 in United States
- OpenDoor()
- GotoFloor()| Report Duplicate | Flag | PURGE
Big Fish iOS Developer System Design