Google Interview Question

Check if one tree is a subtree of another.

Interview Answer

Anonymous

Sep 7, 2017

Compress a non-decreasing array. Example, [1,2,3,3,3,7,8,9,10,10] -> '1-3, 7-10'