First round was 2 questions, given a list with 0,1,2 in it sort it with 2s in front followed by 1s then 0s. Second question was given 2 nums m and n find a number closest to n such that m is a a multiple of n. n = 13, m = 4, the answer is 12. 12 is closest to 13 and is divisible by 4. n = -15, m = 6, the answer is -18. -12 and -18 are equally as far away to -15, if thats the case, take the lower one.
Final round was a 5 phase project. phase 1-3 was given all at once. Given a fat input that has a bunch of lines. Each line has 5 things, a title, genre, creator, views, and something else i forgot. Find a way to parse the data and make it useful for phase 2. This is entirely up to your discretion. I crated a map with the creator as the key and the value be a list that contains all of that specific persons posts. Phase 2 is to generate a news feed for someone based off their friends. Phase 3 is sort the news feed. Then phase 4 is sort it based off more than one thing and phase 5 is create a searching algo to query a word and generate a newsfeed based off that word.