Merge Two Binary Trees
Merge Two Binary Trees: You are given two binary trees root1 and root2.
Merge Two Binary Trees: You are given two binary trees root1 and root2.
Subtree of Another Tree: Given the roots of two binary trees root and subRoot, return true if there is a subtree of root with the same structure and node values…
Palindrome Linked List: Given the head of a singly linked list, return true if it is a palindrome or false otherwise.
Middle of the Linked List: Given the head of a singly linked list, return the middle node of the linked list.
Reverse Linked List: Given the head of a singly linked list, reverse the list, and return the reversed list.
Missing Number: Given an array nums containing n distinct numbers in the range [0, n], return the only number in the range that is missing from the array.