Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content
Manually add a constructor

Martin Koh

Jun 23, 2024

We need to add a customized constructor to accept TreeNode of root in the given code sample.

public Solution(TreeNode root) { initialize(root); }

0

0

Comments
Comments

On this page