## Smallest number greater than X which is K-periodic

Given a string integer X consisting of N digits and an integer K, the task is to find the smallest integer greater than or equal… Read More »

- Must do Math for Competitive Programming
- Array of Vectors in C++ STL
- Breadth First Search without using Queue
- Minimize the maximum difference between adjacent elements in an array
- How is the time complexity of Sieve of Eratosthenes is n*log(log(n))?
- Shortest Path Faster Algorithm
- Maximum sum path in a Matrix
- Basic Algorithm Techniques Not Taught in Academics
- Role of SemiColon in various Programming Languages
- Maximum number of unique values in the array after performing given operations
- Sum of GCD of all possible sequences
- Traveling Salesman Problem using Genetic Algorithm
- Minimum Cost Graph
- Median of an unsorted array using Quick Select Algorithm
- Maximum LCM among all pairs (i, j) from the given Array
- Count of subarrays which start and end with the same element
- Word Break Problem | DP-32 | Set - 2
- Huffman Coding using Priority Queue
- Find lexicographically smallest string in at most one swaps
- Kth most frequent Character in a given String
- Operator Overloading '<<' and '>>' operator in a linked list class
- Longest Mountain Subarray
- Check if sum of any subarray is Palindrome or not
- What is a Webcrawler and where is it used?
- 0/1 Knapsack Problem to print all possible solutions
- Sort an Array which contain 1 to N values in O(N) using Cycle Sort
- Minimum increment or decrement required to sort the array | Top-down Approach
- Find maximum subset sum formed by partitioning any subset of array into 2 partitions with equal sum
- Find last remaining element after reducing the Array
- Longest common subarray in the given two arrays

Given a string integer X consisting of N digits and an integer K, the task is to find the smallest integer greater than or equal… Read More »

Given n rectangular buildings in a 2-dimensional city, computes the skyline of these buildings, eliminating hidden lines. The main task is to view buildings from… Read More »

Given three integers R, C, N, and an array arr[] of size N. The task is to color all cells of a grid of R… Read More »

Given two array of N integers arr[] and costArray[], representing removal cost associated with each element. The task is to find the subsequence from the… Read More »

Given a string str, the task is to check if that string is a Reverse Bitonic string or not. If the string str is reverse… Read More »

Given coordinates of the N points of a Convex Polygon. The task is to check if the given point (X, Y) lies inside the polygon.… Read More »

Given three integers N, L, and R. The task is to calculate the number of natural numbers in the range [L, R] (both inclusive) which… Read More »

Given a number N, the task is to check first whether the given number is binary or not and its value should be greater than… Read More »

Given two numbers L and R, the task is to find the prime numbers between L and R. Examples: Input: L = 1, R =… Read More »

Given a 24-hour time value, where on some numbers are question marks( ‘?’ ), and two integers L and R. The question mark can be… Read More »

Given an integer N. The task is to find a pair of co-prime divisors of N, greater than 1. If such divisors don’t exists then… Read More »

Given a string str, the task is to write a Java program to check whether a string contains only digits or not. If so, then… Read More »

Given two integers X and Y, find the minimal number with the sum of digits X, which is strictly greater than Y. Examples: Input: X… Read More »

Given a Directed Graph and two vertices in it, check whether there is a path from the first given vertex to second. Example: Consider the… Read More »

Given a Directed Acyclic Graph (DAG), having N vertices and M edges, The task is to print all path starting from vertex whose in-degree is… Read More »