SarthakKeshari / CPP-Questions-and-Solutions

This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.
MIT License
45 stars 132 forks source link

Symmetric tree #307

Closed hsiav4 closed 3 years ago

hsiav4 commented 3 years ago

File: Binary Tree Inorder Traversal Question: Given the root of a binary tree, return the inorder traversal of its nodes' values

File: Linked List Cycle Question: Given head, the head of a linked list, determine if the linked list has a cycle in it

File: Linked List Cycle II Question: Given the head of a linked list, return the node where the cycle begins. If there is no cycle, return null

File: Same Tree Question: Given the roots of two binary trees p and q, write a function to check if they are the same or not

File: Symmetric Tree Question: Given the root of a binary tree, check whether it is a mirror of itself

Briefly explain your program logic -

Code for five Leetcode problems about binary trees has been added.


Checklist:

Eg - If your code follow the below guidelines. Kindly change [] to [x]

All the conditions should be fulfilled for considering your code for merging -

SarthakKeshari commented 3 years ago

@hsiav4, Kindly create an issue first and then PR. And follow the PR template and contribution guidelines. Create PR for one question at a time.

SarthakKeshari commented 3 years ago

@hsiav4, This PR will be marked as invalid and be closed by 13/10/2021(6PM). Kindly respond by either closing it or making the required changes.