Minimal Cost
There is an array arr of heights of stone and Geek is standing at the first stone and can jump to one […]
There is an array arr of heights of stone and Geek is standing at the first stone and can jump to one […]
Given an array arr[] and an integer k. Find the maximum for each and every contiguous subarray of size k. Examples: Input: k = 3,
Given a singly linked list of integers. The task is to check if the given linked list is palindrome or
Given an unsorted array arr of of positive integers. One number ‘A‘ from set {1, 2,….,n} is missing and one number ‘B‘
Given a string of characters, find the length of the longest proper prefix which is also a proper suffix. NOTE: Prefix
You are given a special linked list where each node has a next pointer pointing to its next node. You
Given an array height representing the heights of buildings. You have to count the buildings that will see the sunrise (Assume the
Given a String str, reverse the string without reversing its individual words. Words are separated by dots. Note: The last character
Given an expression string x. Examine whether the pairs and the orders of {,},(,),[,] are correct in exp.For example, the function
Given an array arr[] denoting heights of N towers and a positive integer K. For each tower, you must perform exactly one of the following operations exactly once. Increase the height
Given a string str consisting of opening and closing parenthesis ‘(‘ and ‘)‘. Find length of the longest valid parenthesis substring. A