Goldman Sachs Interview Question

kth smallest element in BST Find the smallest divisor given threshold

Interview Answer

Anonymous

Jul 23, 2025

Did the optimal solution for both. 1st with minimal help and second with prompting (I came up with a non optimal and they prompted me to think of how I could improve it before I came up with the optimal)