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
Split array into maximum possible subsets having product of their length with the maximum element at least K
Given an array arr[] consisting of N integers and a positive integer K, the task is to maximize the number of subsets having a product of its size and its maximum element ...
Read More
Arrays
subset
Sorting
Mathematical
partition
DSA
Maximum number of teams of size K possible with each player from different country
Given an array arr[] consisting of N positive integers and a positive integer K such that there are N countries, each country has arr[i] players, the task is to find the m...
Read More
Arrays
Misc
Google
Binary Search
Searching
Mathematical
interview-preparation
DSA
Minimize sum of absolute difference between all pairs of array elements by decrementing and incrementing pairs by 1
Given an array arr[] ( 1-based indexing ) consisting of N integers, the task is to find the minimum sum of the absolute difference between all pairs of array elements by d...
Read More
Arrays
Analysis of Algorithms
Pattern Searching
Mathematical
DSA
Smallest length of number divisible by K formed by using D only
Given 2 integers D and K, the task is to find the minimum length of a number formed by repeating D that will be divisible by K. If no such number exists, print -1.Examples...
Read More
Mathematical
divisibility
DSA
Longest subarray with all even or all odd elements
Given an array A[ ] of N non-negative integers, the task is to find the length of the longest sub-array such that all the elements in that sub-array are odd or even.Exampl...
Read More
Arrays
Algorithms
Dynamic Programming
subarray
Data Structures
DSA
Generate an N-length array having GCD of all its pairs present in a given 2D array
Given a 2D array arr[][] consisting of N*N positive integers, the task is to generate an N-length array such that Greatest Common Divisors(GCD) of all possible pairs of th...
Read More
Arrays
Mathematical
Matrix
HCF
frequency-counting
DSA
Minimum number of array indices required to be selected to make the sum of a set greater than another
Given two arrays arr[] and brr[] of size N and an integer K. Consider two sets A, contains K initially, and B, initially empty. In each operation, an index is required to ...
Read More
Arrays
Sorting
Mathematical
DSA
Modify a numeric string to a balanced parentheses by replacements
Given a numeric string S made up of characters '1', '2' and '3' only, the task is to replace characters with either an open bracket ( '(' ) or a closed bracket ( ')' ) suc...
Read More
Strings
Greedy
Searching
Parentheses-Problems
DSA
Check if an array can be sorted by swapping adjacent elements such that each element is swapped even number of times
Given an array arr[] consisting of N integers, the task is to check if the array can be sorted by swapping adjacent elements any number of times such that each array eleme...
Read More
Arrays
Sorting
Mathematical
array-rearrange
DSA
Count of index range [L, R] in Array such that removing all its instances sorts the Array
Given an array arr[] of length N, the task is to find the number of Good Ranges in the array arr[].A Good Range is defined as the range of left and right indices, i.e, [L....
Read More
Arrays
Binary Search
subarray
DSA
Find character at Kth index by appending S1 (M) times and S2 (M+1) times
Given two strings, S1 and S2 and an integer K.A string str can be made by performing the following operations:Take an Empty String InitiallyAppend S1 one timesAppend S2 tw...
Read More
Strings
DSA
Maximize the profit after selling the tickets | Set 2 (For elements in range [1, 10^6])
Given an array, arr[] of size N where arr[i] represents the number of tickets, the ith seller has and a positive integer K. The price of a ticket is the number of tickets ...
Read More
Arrays
Greedy
frequency-counting
DSA
Count of distinct permutation of a String obtained by swapping only unequal characters
Given a string find the number of unique permutations that can be obtained by swapping two indices such that the elements at these indices are distinct.NOTE: Swapping is a...
Read More
Strings
Greedy
Combinatorial
permutation
DSA
Rearrange the Array by shifting middle elements to start and end alternatively
Given an array, the task is to shift the middle element to the start and end of the array alternatively, till the middle element becomes equal to the first element of the ...
Read More
Arrays
Combinatorial
array-rearrange
DSA
Create a BiAxial Line Chart using Recharts in ReactJS
Y-axis Rechart JS is a library Reactused for creating charts for React JS. This library is used for building Line charts, Bar charts, Pie charts, etc, with the help of Rea...
Read More
Web Technologies
JavaScript
React-Questions
ReactJS
Recharts
1
...
5696
5697
5698
...
11340