Original code:
using System; public class Node { public int Value { get; set; } public Node Left { get; set; } public Node Right { get; set; } public Node(int value, Node left, Node right) { Value = value; Left = left; Right = right; } } public class BinarySearchTree { public static bool Contains(Node root, int value) { throw new NotImplementedException("Waiting to be implemented."); } public static void Main(string[] args) { Node n1 = new Node(1, null, null); Node n3 = new Node(3, null, null); Node n2 = new Node(2, n1, n3); Console.WriteLine(Contains(n2, 3)); } }
Dashboard
Start Trial
Sign In
Home
Product
Features
Use Cases
Customers
ROI Calculator
Integrations
Assessments
Tests
Questions
Pricing
Resources
Book: Evidence-Based Hiring
Blog
Support
Contact Us
Legal
For Jobseekers
© TestDome, 2024.