Courses
Tutorials
Jobs
Practice
Contests
Data Structure
Java
Python
HTML
Interview Preparation
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
GBlog
Frontend Developer Roadmap 2024
Frontend development means to design the face of a website or application. It involves working on the appearance of the website. Building interactive buttons, using images...
Read More
Maximum Subset Sum possible by negating the entire sum after selecting the first Array element
Given an array A[] consisting of N integers, the task is to find the maximum subset-sum possible if the sum of all the elements is negated if the first element of the arra...
Read More
Arrays
subset
GBlog
Algorithms
Greedy
Mathematical
Competitive Programming
C++ Programs
DSA
Minimize cost to Swap two given Arrays
Given two arrays A[] and B[] both of size N consisting of distinct elements, the task is to find the minimum cost to swap two given arrays. Cost of swapping two elements A...
Read More
Arrays
Greedy
Mathematical
DSA
Binary Synchronous Communication (BISYNC)
Binary Synchronous Communication (BISYNC) is basically a character or byte-oriented form of communication which means that the groups of bits or bytes are the important el...
Read More
Computer Networks
Difference between Hierarchical and Flat routing protocol
1. Hierarchical Routing Protocol:Hierarchical Routing is the method of routing in networks that is based on hierarchical addressing. Most transmission control protocol, In...
Read More
Computer Networks
Network Layer
routing
Perspective Projection and its Types
In Perspective Projection the center of projection is at finite distance from projection plane. This projection produces realistic views but does not preserve relative pro...
Read More
Misc
computer-graphics
Test Coverage vs Code Coverage
Test Coverage and Code coverage are the most mainstream philosophies for estimating the viability of the code. In spite of the fact that these terms are at times utilized ...
Read More
Software Engineering
Software Testing
Construct an Array of Strings having Longest Common Prefix specified by the given Array
Given an integer array arr[] of size N, the task is to construct an array consisting of N+1 strings of length N such that arr[i] is equal to the Longest Common Prefix of i...
Read More
Arrays
Strings
Greedy
Competitive Programming
DSA
Minimize swaps required to maximize the count of elements replacing a greater element in an Array
Given an array A[], consisting of N elements, the task is to find the minimum number of swaps required such that array elements swapped to replace a higher element, in the...
Read More
Arrays
Greedy
Mathematical
Hash
array-rearrange
cpp-map
frequency-counting
DSA
Queries to find the Lower Bound of K from Prefix Sum Array with updates using Fenwick Tree
Given an array A[ ] consisting of non-negative integers and a matrix Q[ ][ ] consisting of queries of the following two types:(1, l, val): Update A[l] to A[l] + val.(2, K)...
Read More
Arrays
Bit Magic
Searching
Mathematical
Advanced Data Structure
BIT
prefix-sum
array-range-queries
DSA
Count of Distinct Substrings occurring consecutively in a given String
Given a string str, the task is to find the number of distinct substrings that are placed consecutively in the given string.Examples:Input: str = "geeksgeeksforgeeks"Outpu...
Read More
Strings
Dynamic Programming
Hash
Competitive Programming
HashTable
cpp-unordered_set
frequency-counting
Memoization
substring
DSA
Sum of bit differences for numbers from 0 to N | Set 2
Given a number N, the task is to calculate the total number of corresponding different bit in the binary representation for every consecutive number from 0 to N.Examples:I...
Read More
Bit Magic
Mathematical
Competitive Programming
Recursion
DSA
Minimum number of leaves required to be removed from a Tree to satisfy the given condition
Given a Tree consisting of N vertices, rooted at vertex 1 and an array val[] representing the values assigned to each vertex, and an array cost[] representing the cost of ...
Read More
Tree
Searching
Mathematical
DFS
Recursion
Tree Traversals
DSA
Farthest distance of a Node from each Node of a Tree
Given a Tree, the task is to find the farthest node from each node to another node in the given tree.ExamplesInput:Output: 2 3 3 3 4 4 4Explanation:Maximum Distance from N...
Read More
Tree
Trees
Algorithms
Dynamic Programming
Searching
DFS
Recursion
Tree Traversals
DSA
Check if an Array is made up of Subarrays of continuous repetitions of every distinct element
Given an array arr[], consisting of N integers, the task is to check whether the entire array is only made up of subarrays such that each subarray consists of consecutive ...
Read More
Arrays
Misc
Searching
frequency-counting
DSA
Size of all connected non-empty cells of a Matrix
Given a binary matrix mat[][], the task is to find the size of all possible non-empty connected cells. An empty cell is denoted by 0 while a non-empty cell is denoted by 1...
Read More
Graph
Queue
Searching
Mathematical
Matrix
BFS
Recursion
DSA
1
...
7458
7459
7460
...
11268