725. Split Linked List in Parts
Given the head of a singly linked list and an integer k, split the linked list into k consecutive linked list parts. The length of […]
Given the head of a singly linked list and an integer k, split the linked list into k consecutive linked list parts. The length of […]
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 binary tree root and a linked list with head as the first node. Return True if all the elements in the linked list
Given a positive integer n. You have to find nth natural number after removing all the numbers containing the digit 9. Examples :
You are given an array of integers nums and the head of a linked list. Return the head of the modified linked list after removing all nodes from
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:
You have observations of n + m 6-sided dice rolls with each face numbered from 1 to 6. n of the observations went missing, and you only have
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
A robot on an infinite XY-plane starts at point (0, 0) facing north. The robot can receive a sequence of these three
There are n stairs, and a person standing at the bottom wants to reach the top. The person can climb either 1 stair
You are given a string s consisting of lowercase English letters, and an integer k. First, convert s into an integer by replacing each letter with
Given two strings str1 and str2. The task is to remove or insert the minimum number of characters from/in str1 so as to transform it into str2. It could be possible