## Difference between sum of even and odd valued nodes in a Binary Tree

Given a binary tree, the task is to find the absolute difference between the even valued and the odd valued nodes in a binary tree.… Read More »

- Maximum sum path in a Matrix
- Count of subsets with sum equal to X using Recursion
- Count of subarrays of an Array having all unique digits
- Check if an array is sorted and rotated using Binary Search
- Longest alternating subsequence in terms of positive and negative integers
- How to flatten a Vector of Vectors or 2D Vector in C++
- Word Break Problem | DP-32 | Set - 2
- Construct a Doubly linked linked list from 2D Matrix
- Digital Root of a given large integer using Recursion
- Check if a given number is a Perfect square using Binary Search
- Find distance between two nodes in the given Binary tree for Q queries
- Print Palindromic Paths of Binary tree
- Count total ways to reach destination from source in an undirected Graph
- Minimum increment or decrement required to sort the array | Top-down Approach
- Find maximum subset sum formed by partitioning any subset of array into 2 partitions with equal sum
- C/C++ program for calling main() in main()
- Longest common subarray in the given two arrays
- Detect Cycle in a Linked List using Map
- Find all subsequences with sum equals to K
- Queries for elements having values within the range A to B in the given index range using Segment Tree
- Count number of binary strings without consecutive 1’s : Set 2
- Maximum path sum in the given arrays with at most K jumps
- Move all occurence of letter 'x' from the string s to the end using Recursion
- Count the number of ways to divide N in k groups incrementally
- Ackermann's function using Dynamic programming
- Least Common Ancestor of any number of nodes in Binary Tree
- Count maximum occurrence of subsequence in string such that indices in subsequence is in A.P.
- Number of pairs such that path between pairs has the two vertices A and B
- Count nodes in the given tree whose weight is a fibonacci number
- Check if a string is a scrambled form of another string

Given a binary tree, the task is to find the absolute difference between the even valued and the odd valued nodes in a binary tree.… Read More »

Given a binary tree consisting of N nodes, the task is to print the nodes that are just above the leaf node. Examples: Input: N… Read More »

Given a valid parenthesis string S, the task is to find the weight of parenthesis based on the following conditions: Weight of “( )” is… Read More »

Given an integer array arr[] of size N and an integer K. The task is to find length of longest subsequence whose sum is less… Read More »

Given a rod of length N meters, and the rod can be cut in only 3 sizes A, B and C. The task is to… Read More »

Given a Binary Tree, the task is to print the nodes that have grandchildren. Examples: Input: Output: 20 8 Explanation: 20 and 8 are the… Read More »

Given a Binary Tree and a positive integer K. The task is to check whether the Balanced BST of size K exist in a given… Read More »

Given a string str, the task is to check if it can be split into substrings such that each substring starts with a numeric value… Read More »

Given an undirected graph having N vertices and M edges and each vertex is associated with a cost and a source vertex S is given.… Read More »

Given a binary tree, the task is to print the longest path from the root node to the leaf node. If there are multiple answers… Read More »

Given two integers N and K, the task is to count the numbers up to N digits such that no two zeros are adjacents and… Read More »

Given an array arr[] of N numbers. We can merge two adjacent numbers into one and the cost of merging the two numbers is equal… Read More »

Given an undirected graph, the task is to count the maximum number of Bridges between any two vertices of the given graph. Examples: Input: Graph… Read More »

Given an array arr[] consisting of N integers and an integer K, the task is to find the length of longest subsequence with sum equal… Read More »

Given an array arr[] of N positive integers, the task is to count the number of array elements which can be expressed as the product… Read More »