DEV Community

loading...
Cover image for What is the purpose of  one particular thing in the code ?

What is the purpose of one particular thing in the code ?

archit03 profile image Archit Sood ・1 min read

What is the purpose of the // for left subtree
(int left = x * 2 + 1;
// for right subtree
int right = x * 2 + 2;)
in the code given in the image .

Discussion (0)

pic
Editor guide