Live Batches
Masterclasses
Menu
Free Courses
Account
Login / Sign Up
Problem Submissions Solution

Count Total Nodes in Binary Tree

Difficulty: Medium

Acceptance: 75.68%

Points: 30.00

You are given the root of a binary tree. Your task is to return the total number of nodes present in the binary tree.

Topics

Companies

Articles

Examples:
Constraints:
  • - 0 = Number of nodes = 105
  • - -10? = Node.data = 10?
Companies:
PhonePe Rubrik American Express
Topics:
Tree Traversal Binary Tree
Locked Content
Access Restricted: Please Login to access the code editor and test cases.