Skip to content
Related Articles

Related Articles

Google Online Challenge 2020

Improve Article
Save Article
Like Article
  • Difficulty Level : Medium
  • Last Updated : 21 Aug, 2020

The Google online challenge 2020 for summer internships 2021 was held on August 16. It was a 60-minute online test having 2 questions to code.

First Question: Size of the smallest subset with maximum Bitwise OR

Second Question: Given a list which initially contains 0, the following queries can be performed:

  • 0 X: add X to the list
  • 1 X: replace each element “A” of the list by A^X, where ^ is the xor operator.

Return a list with the result elements in increasing order.

Example:

5 (no of queries)
0 4
0 2
1 4
0 5
1 8

Answer:

8 12 13 14
My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!