## Min steps to convert N-digit prime number into another by replacing a digit in each step

Given two N-digit prime numbers A and B, the task is to find the minimum number of steps taken to convert A to B. Condition… 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
- Shortest Path Faster Algorithm
- Basic Algorithm Techniques Not Taught in Academics
- Print all possible combinations of the string by replacing '$' with any other digit from the string
- Role of SemiColon in various Programming Languages
- Check if a string is a scrambled form of another string
- Word Break Problem | DP-32 | Set - 2
- Median of an unsorted array using Quick Select Algorithm
- Count the number of ways to construct the target string
- Sum of GCD of all possible sequences
- Maximum number of unique values in the array after performing given operations
- Kth most frequent Character in a given String
- Extended Knapsack Problem
- Count of substrings of length K with exactly K distinct characters
- Maximum LCM among all pairs (i, j) from the given Array
- Count of subarrays which start and end with the same element
- Longest common subarray in the given two arrays
- Huffman Coding using Priority Queue
- 0/1 Knapsack Problem to print all possible solutions
- Find if there is a path between two vertices in an undirected graph
- Find lexicographically smallest string in at most one swaps
- Flood Fill Algorithm
- Finding Median of unsorted Array in linear time using C++ STL
- What is a Webcrawler and where is it used?
- Operator Overloading '<<' and '>>' operator in a linked list class
- Shortest path in a directed graph by Dijkstra’s algorithm
- Why Prim’s and Kruskal's MST algorithm fails for Directed Graph?

Given two N-digit prime numbers A and B, the task is to find the minimum number of steps taken to convert A to B. Condition… Read More »

Given a string htmlCode which is HTML code of a webpage, the task is to find the missing end tag in the HTML code. Examples:… Read More »

The security of the RSA algorithm is based on the difficulty of factorizing very large numbers. The setup of an RSA cryptosystem involves the generation… Read More »

Given a string str that represents a number. The task is to find all possible ways to split the given string such that each segment… Read More »

An algorithm like Insertion Sort can be understood easily by visualizing. In this article, a program that visualizes the Insertion Sort Algorithm has been implemented.… Read More »

Given an integer N, the task is to find the N-th Fibonacci numbers. Examples: Input: N = 3 Output: 2 Explanation: F(1) = 1, F(2)… Read More »

Given a matrix mat[][], the task is to check that the sum of the elements of the matrix is prime or not. Examples: Input: mat[][]… Read More »

Given a string consisting of the first N distinct alphabets, the task is to sort the string by using at most N/2 moves. Each move… Read More »

Prerequisite: NP-Completeness, Independent set. An Independent Set S of graph G = (V, E) is a set of vertices such that no two vertices in… Read More »

A Min Heap is a Complete Binary Tree in which the children nodes have a higher value (lesser priority) than the parent nodes, i.e., any… Read More »

Given the data for Hotel management and User: Hotel Data: Hotel Name Room Available Location Rating Price per Room H1 4 Bangalore 5 100 H2… Read More »

Given a natural number n, find the sum of sum-series of first N natural number. Sum-Series: is sum of first N natural numbers, i.e, sum-series… Read More »

Given an integer N where 1 ≤ N ≤ 105, the task is to find whether (N-1)! % N = N – 1 or not.… Read More »

Given a number N, the task is to find the minimum number of operations required to reduce the number N to zero by subtracting the… Read More »

Place value can be defined as the value represented by a digit in a number on the basis of its position in the number. Here… Read More »