664. Strange Printer
There is a strange printer with the following two special properties: The printer can only print a sequence of the same […]
There is a strange printer with the following two special properties: The printer can only print a sequence of the same […]
You are given an Undirected Graph having unit weight of the edges, find the shortest pathfrom src to all the vertex and if it is unreachable to reach
Alice and Bob continue their games with piles of stones. There are a number of piles arranged in a row, and each pile
Given a binary tree and a node data called target. Find the minimum time required to burn the complete binary tree if the
There is only one character ‘A’ on the screen of a notepad. You can perform one of two operations on this notepad
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
An ugly number is a positive integer whose prime factors are limited to 2, 3, and 5. Given an integer n, return the nth ugly number. Example 1: Input:
Given an array of integers arr, return true if it is possible to split it in two subarrays (without reordering the elements), such
You are given an m x n integer matrix points (0-indexed). Starting with 0 points, you want to maximize the number of points you can get from the
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].
You are given m arrays, where each array is sorted in ascending order. You can pick up two integers from two different arrays
Given an integer n denoting the Length of a line segment. You need to cut the line segment in such a way that