Grokking Meta Coding Interview
Ask Author
Back to course home

0% completed

Vote For New Content
if leftTreeHeight is not None and rightTreeHeight is not None:should be ...

PENG SHI

Apr 21, 2022

if leftTreeHeight is not None and rightTreeHeight is not None:

should be if leftTreeHeight == 0 and rightTreeHeight == 0:

2

0

Comments
Comments
M
Michael Jurewicz3 years ago

if leftTreeHeight != 0 and rightTreeHeight != 0:

Design Gurus
Design Gurus3 years ago

Thanks for pointing that out. We have fixed it.

On this page