Upwork | Atlassian | Grubhub | Upstart
Anonymous User
5887

Upwork:

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>","<div>","<p>","hello","</p>","</div>","</body>",</html>"};

Upstart:

I forgot the company..

I couldn't solve the itemset frequency and html tags question.

Comments (4)