You are viewing a single comment's thread. Return to all comments →
That checks to see if the i-th character is the character 0. If it is, then n = n left, otherwise n = n.right
n = n left
n = n.right
The ? is called a ternary operator
?
HackerRank solutions
Seems like cookies are disabled on this browser, please enable them to open this website
Tree: Huffman Decoding
You are viewing a single comment's thread. Return to all comments →
That checks to see if the i-th character is the character 0. If it is, then
n = n left
, otherwisen = n.right
The
?
is called a ternary operatorHackerRank solutions