Vertical Width of a Binary Tree
Given a Binary Tree. You need to find and return the vertical width of the tree. Examples : Input: 1 […]
Given a Binary Tree. You need to find and return the vertical width of the tree. Examples : Input: 1 […]
A critical point in a linked list is defined as either a local maxima or a local minima. A node is a local maxima if the current node has
Given a binary tree, your task is to find all duplicate subtrees from the given binary tree. Duplicate Subtree : Two
You are given an integer array nums. In one move, you can choose one element of nums and change it to any value. Return the
Given a sorted linked list, delete all nodes that have duplicate numbers (all occurrences), leaving only numbers that appear once
Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must appear as many times as
Given a linked list with string data, check whether the combined string formed is palindrome. If the combined string is
Given an integer array arr, return true if there are three consecutive odd numbers in the array. Otherwise, return false. Example 1: Input: arr
Given a Linked List Representation of Complete Binary Tree. The task is to construct the Binary tree and print the
Alice and Bob have an undirected graph of n nodes and three types of edges: Type 1: Can be traversed by Alice
Given a doubly Linked list and a position. The task is to delete a node from a given position (position starts from 1) in
Given the two singly Linked Lists respectively. The task is to check whether two linked lists are identical or not. Two Linked Lists are identical