Skip to content

Conversation

@Vaibhav0527
Copy link
Contributor

Description

This pull request introduces a new feature that allows users to generate any custom Binary Tree structure /binary search tree by entering node values in level order, using -1 to indicate missing (null) children.

Key updates include:

Added Level Order Tree Builder function that constructs a tree based on an input array (e.g., [1, 2, 3, 4, -1, -1, 5]).

Updated UI input section for users to enter level order values.

Integrated "Build Tree" button to instantly create and visualize the specified tree.

Improved visualization logic to correctly handle skipped nodes (-1).

Optional manual Add Left / Add Right functionality for interactive tree building.

Semver Changes

  • Patch (bug fix, no new features)
  • Minor (new features, no breaking changes)
  • Major (breaking changes)

Issues

List any issues that this pull request closes.

Checklist

@adityacosmos24 adityacosmos24 merged commit e62783b into OPCODE-Open-Spring-Fest:main Oct 31, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants