Original code:
#include
#include
typedef struct Node { int value; struct Node *left; struct Node *right; } Node; int contains(const Node *root, int value) { exit(0); } #ifndef RunTests int main() { Node n1 = {.value=1, .left=NULL, .right=NULL}; Node n3 = {.value=3, .left=NULL, .right=NULL}; Node n2 = {.value=2, .left=&n1, .right=&n3}; printf("%d", contains(&n2, 3)); } #endif
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.