Maximum Value in Each Row

# Introduction In this challenge, we'll work on binary trees to discover the greatest value in each row. Our aim is to write a function that receives the root node of a binary tree and returns an array containing the highest value from each row. We need to implement the `largestValues` function in the given `largestValues.js` file and guarantee that it's exported correctly. Best of luck!

|60 : 00

Click the virtual machine below to start practicing