Binary Tree to DLL
Given a Binary Tree (BT), convert it to a Doubly Linked List (DLL) in place. The left and right pointers […]
Given a Binary Tree (BT), convert it to a Doubly Linked List (DLL) in place. The left and right pointers […]
Given an unsorted array arr containingbothpositive and negative numbers. Your task is to create an array of alternate positive and negative numbers without changing the
Given a Binary Tree, convert it into its mirror. Examples: Input: 1 / \ 2 3 Output: 3
Given the head of a linked list, the task is to find the middle. For example, the middle of 1-> 2->3->4->5 is 3. If
Given an array arr containing the lengths of the different ropes, we need to connect these ropes to form one rope. The cost to
Given an array arr of lowercase strings, determine if the strings can be chained together to form a circle.A string X can be chained
Given an array arr containing only 0s, 1s, and 2s. Sort the array in ascending order. Examples: Input: arr[]= [0, 2, 1, 2, 0]
Given an array arr[] of non-negative integers. Each array element represents the maximum length of the jumps that can be made forward from that
Given a positive integer n. You have to find nth natural number after removing all the numbers containing the digit 9. Examples :
Given an integer array arr[]. Find the contiguous sub-array(containing at least one number) that has the maximum sum and return its sum. Examples:
Given an array arr of size n−1 that contains distinct integers in the range of 1 to n (inclusive), find the missing element. The array
There are n stairs, and a person standing at the bottom wants to reach the top. The person can climb either 1 stair