Burning Tree
Given a binary tree and a node data called target. Find the minimum time required to burn the complete binary tree if the […]
Given a binary tree and a node data called target. Find the minimum time required to burn the complete binary tree if the […]
Given an array arr[] and an integer k where k is smaller than the size of the array, the task is to find the kth smallest element
Given an array of integers arr, return true if it is possible to split it in two subarrays (without reordering the elements), such
Given an array nums[], construct a Product Array nums[] such that nums[i] is equal to the product of all the elements of nums except nums[i].
Given an integer n denoting the Length of a line segment. You need to cut the line segment in such a way that
You are given a linked list where each element in the list is a node and have an integer data.
You are given two strings str1 and str2. Your task is to find the length of the longest common substring among the given strings. Examples:
Given an integer n, find the square root of n. If n is not a perfect square, then return the floor value. Floor value
Given 2 sorted integer arrays arr1 and arr2. Find the median of two sorted arrays arr1 and arr2. Examples: Input: arr1 = [1, 2, 4,
Given a set of n jobs where each jobi has a deadline and profit associated with it. Each job takes 1 unit of time to complete
Given the head of a singly linked list, the task is to rotate the linked list clockwise by k nodes, i.e., left-shift the linked list by k nodes, where k is a
Given an array arr of n integers. Your task is to write a program to find the maximum value of ∑arr[i]*i, where i = 0,