Left and Right view of binary tree

·

1 min read

Table of contents

No heading

No headings in the article.

Hi folks,

I was solving the question of left view of binary tree, as everyone trys to modify arraylist with value at index, but that doesn't work with java empty arraylists. So, I found something new particularly with this problem and that is just insert when list size is equal to level.

Response if it was helpful and new to someone.