Google | Phone screen | Same Tree [Reject]
Anonymous User
1226

Status: Graduated at 2017 from UCSC, BA CS
Position: software developer at Google
Location: Mountain View , CA
Date: May 28, 2019

I had one hour phone screen.
Programming questions:

  1. Function that takes two lists, and returns two things: elements in the first list not in the second, and elements in the second list which are not in the first.

    list1 = [a, a, b, c]
    list2 = [a, b, b, d]
    want output: [a, c], [b, d]
  2. Write a function which takes two binary trees and returns true if they are equivalent: https://leetcode.com/problems/same-tree

Comments (8)