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
Minimize deletions in a Binary String to remove all subsequences of the form "0101"
Given a binary string S of length N, the task is to find the minimum number of characters required to be deleted from the string such that no subsequence of the form “0101...
Read More
Strings
Searching
subsequence
binary-string
frequency-counting
DSA
Length of longest subsequence having sum of digits of each element as a Composite Number
Given an array arr[] consisting of non-negative integers, the task is to print the length of the longest subsequence from the given array whose sum of digits of each eleme...
Read More
Arrays
Searching
Mathematical
subsequence
sieve
Prime Number
DSA
Find K that requires minimum increments or decrements of array elements to obtain a sequence of increasing powers of K
Given an array consisting of N integers, the task is to find the integer K which requires the minimum number of moves to convert the given array to a sequence of powers of...
Read More
Arrays
Mathematical
array-rearrange
DSA
LOCALTIME() function in MySQL
LOCALTIME() function in MySQL is used to check current date and time value. It returns the value of current date and time in ‘YYYY-MM-DD HH:MM:SS’ format or YYYYMMDDHHMMSS...
Read More
SQL
mysql
Length of longest subarray with product equal to a power of 2
Given an array arr[] consisting of N positive integers, the task is to find the length of the longest subarray having a product of elements of that subarray equal to a per...
Read More
Arrays
Dynamic Programming
Searching
Mathematical
subarray
Kadane
maths-power
DSA
Minimize replacements by previous or next alphabet required to make all characters of a string the same
Given a string S of length N consisting of lowercase alphabets, the task is to find the minimum number of operations required to make all the characters of the string S th...
Read More
Strings
Mathematical
DSA
Length of smallest subarray to be removed such that the remaining array is sorted
Given an array arr[] consisting of N integers, the task is to print the length of the smallest subarray to be removed from arr[] such that the remaining array is sorted.Ex...
Read More
Arrays
Greedy
Searching
Sorting
array-rearrange
subarray
DSA
Count ways to split array into K non-intersecting subsets
Given an array, arr[] of size N and an integer K, the task is to split the array into K non-intersecting subsets such that union of all the K subsets is equal to the given...
Read More
Greedy
Mathematical
Combinatorial
Permutation and Combination
DSA
Divide Matrix into K groups of adjacent cells having minimum difference between maximum and minimum sized groups
Given N rows and M columns of a matrix, the task is to fill the matrix cells using first K integers such that:Each group of cells is denoted by a single integer.The differ...
Read More
Pattern Searching
Mathematical
Matrix
School Programming
DSA
Minimize cost to convert all characters of a binary string to 0s
Given a binary string, str, two integer arrays R[], and C[] of size N. Flipping all the characters from index i to R[i] requires C[i] cost. The task is to minimize the cos...
Read More
Strings
Bit Magic
Queue
Greedy
Sorting
Mathematical
priority-queue
DSA
Smallest number to be subtracted to convert given number to a palindrome
Given an integer N, the task is to find the smallest number to be subtracted from N to obtain a palindrome.Examples:Input: N = 1000Output: 1Explanation: Since 1000 – 1 = 9...
Read More
Searching
Mathematical
palindrome
Reverse
DSA
How to know testcases where code fails?
In Competitive Programming, it's quite often to write code that works on the given sample test cases but on submitting its end up with a WA(Wrong answer) verdict. This is ...
Read More
Competitive Programming
Software Engineering
Software Testing
DSA
Difference between sizeof(int *) and sizeof(int) in C/C++
sizeof() is commonly used operator in the C or C++. It is a compile-time unary operator that can be used to compute the size of its operand. The result of sizeof() is of ...
Read More
Articles
C Basics
cpp-operator
C Language
C++
C-Operators
C++ Programs
C/C++ Puzzles
Runtime and Compile-time constants in C++
Run-time Constant:These are the constants whose respective values can only be known or computed at the time of running of source code. Run time Constants are a bit slower ...
Read More
cpp-data-types
CPP-Basics
C++
const keyword
C++ Programs
Programming Basics
5 Things You Should Avoid While Using Social Media
Social media has been around for decades, and we as netizens have been finding several ways to use it. We may use it to post our status on a daily basis, watch our favorit...
Read More
GBlog
TechTips
1
...
7008
7009
7010
...
11268