Upwork | Atlassian | Grubhub | Upstart
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2019-08-09Added By Anonymous
Source:Ā Link
š§ Experience: unknown
ā
Outcome: unknown
š° Compensation: unknown
š Location: unknown
š¢ Company: Atlassian
š Education: unknown
š Benefits: unknown
š
Offer Date: unknown
Upwork:
* https://leetcode.com/problems/lru-cache
Atlassian:
* https://leetcode.com/problems/kth-largest-element-in-an-array What happens if `k` is > 10?
* Given a list of transactions, How can we calculate the frequency counts of all possible item-sets?
For example, Input:
ID Purchased Items
1 apple, banana, lemon
2 banana, berry, lemon, orange
3 banana, berry, lemon
Output:
Itemset Frequency
apple, banana 1
apple, lemon 1
banana, berry 2
banana, lemon 3
Grubhub:
* Random number generator with equal probability.
* Return all palindromic sequences in a String
* String[] with HTML tags.
Identify a DS to store the tags, write a method to build the DS and traverse a DS
Assume that the html is valid.
`String[] tags = {"<html>","<body>","
","
","</body>",</html>"};`
Upstart:
* https://leetcode.com/problems/simplify-path
I forgot the company..
* Run length encoding
* https://leetcode.com/problems/spiral-matrix
I couldn't solve the itemset frequency and html tags question.","hello","
","