The Wayback Machine - https://web.archive.org/web/20211006192944/https://www.geeksforgeeks.org/hard/13/
Skip to content
All Hard Articles
Given a numeric string S consisting of N digits and a positive integer K, the task is to check if the given string can be… Read More
During the Lock-down situations getting a job is really a big deal nowadays, so I am sharing my experience of how I cracked the Hackwithinfy… Read More
Given three numbers N, K, and M, the task is to find the maximum value that can be assigned to the Kth index if positive… Read More
Given N candies, M people, and an array arr[] of M positive integers, the task is to find the minimum value of K such that… Read More
Given an array of pairs Edges[][], representing edges connecting vertices in a Tree consisting of N nodes, the task is to find the minimum time… Read More
Given an array arr[] consisting of N integers such that each array element arr[i] represent coefficients of a polynomial expression starting with the highest degree(A[0].X(N… Read More
Given an array arr[] consisting of N integers, the task is to find the length of the longest subsequence such that the prefix sum at… Read More
Given an array arr[] of size N, consisting of distinct elements, the task is to count the number triplets such that (arr[j] – arr[i]) ≤… Read More
Given two numbers X and Y, the task is to make both of them equal by repeatedly multiplying with their prime factors minimum number of… Read More
Special Characters like dot(.), hash(#), etc., which have a special meaning to the regular expression need to be escaped to match in the regular expression.… Read More
As we are are well verse with this topic let us put more stress in order to figure out minute differences between them. Here we… Read More
Given a 2d array, arr[][] and a piece of the chocolate bar of dimension N × M, the task is to find the minimum possible sum… Read More
Given 2 array of strings X and Y, the task is to find the number of superstrings in X. A string s is said to… Read More
Given three integers A, B and C. You can add or subtract A, B, or 0 any number of times to form new values in… Read More
What is ‘Identity Column’ ? Identity column of a table is a column whose value increases automatically. A user generally cannot insert a value into… Read More
Zhu-Takaoka String Matching Algorithm is a Variant of Boyer Moore Algorithm for Pattern Matching in a String. There is a slight change in the concept… Read More
HTTP Client and WebSocket APIs provide high-level client interfaces to HTTP (versions 1.1 and 2) and low-level client interfaces to WebSocket. The main types defined… Read More
Depth First Traversal (or Search) for a graph is similar to Depth First Traversal of a tree. The only catch here is, unlike trees, graphs… Read More
Given a binary string S, and two integers A, which denotes the cost of reversing a substring, and B, which denotes the cost of flipping… Read More
Given an array arr[] of size N and a number K, the task is to partition the given array into K contiguous subarrays such that… Read More