Oracle Interview Question

They asked one DSA question on side view of binary tree

Interview Answer

Anonymous

Sep 16, 2023

Firstly I solved the problem with brute force approach and then the interviewer asked me to solve it with better approach so I gave them an optimized solution.