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
Javascript Program to Find k maximum elements of array in original order
Given an array arr[] and an integer k, we need to print k maximum elements of given array. The elements should printed in the order of the input.Note : k is always less th...
Read More
Binary Search
Searching
Sorting
STL
cpp-vector
Web Technologies
JavaScript
DSA
Python Program to Find k maximum elements of array in original order
Given an array arr[] and an integer k, we need to print k maximum elements of given array. The elements should printed in the order of the input.Note : k is always less th...
Read More
Binary Search
Searching
Sorting
Python
STL
cpp-vector
Python Programs
DSA
Java Program to Find k maximum elements of array in original order
Given an array arr[] and an integer k, we need to print k maximum elements of given array. The elements should printed in the order of the input.Note : k is always less th...
Read More
Java
Binary Search
Searching
Sorting
STL
cpp-vector
Java Programs
DSA
C++ Program to Find k maximum elements of array in original order
Given an array arr[] and an integer k, we need to print k maximum elements of given array. The elements should printed in the order of the input.Note : k is always less th...
Read More
Binary Search
Searching
Sorting
STL
cpp-vector
C++
C++ Programs
DSA
Javascript Program to Check if a string can be obtained by rotating another string d places
Given two strings str1 and str2 and an integer d, the task is to check whether str2 can be obtained by rotating str1 by d places (either to the left or to the right).Examp...
Read More
Strings
rotation
Reverse
Web Technologies
JavaScript
DSA
Python3 Program for Check if a string can be obtained by rotating another string d places
Given two strings str1 and str2 and an integer d, the task is to check whether str2 can be obtained by rotating str1 by d places (either to the left or to the right).Examp...
Read More
Strings
Python
rotation
Reverse
DSA
C++ Program to Check if a string can be obtained by rotating another string d places
Given two strings str1 and str2 and an integer d, the task is to check whether str2 can be obtained by rotating str1 by d places (either to the left or to the right).Examp...
Read More
Strings
rotation
Reverse
C++
C++ Programs
DSA
Javascript Program to Modify a matrix by rotating ith row exactly i times in clockwise direction
Given a matrix mat[][] of dimensions M * N, the task is to print the matrix obtained after rotating every ith row of the matrix i times in a clockwise direction.Examples:I...
Read More
Arrays
Matrix
Technical Scripter
rotation
array-rearrange
Web Technologies
JavaScript
Technical Scripter 2020
DSA
Python3 Program to Modify a matrix by rotating ith row exactly i times in clockwise direction
Given a matrix mat[][] of dimensions M * N, the task is to print the matrix obtained after rotating every ith row of the matrix i times in a clockwise direction.Examples:I...
Read More
Arrays
Matrix
Technical Scripter
Python
rotation
array-rearrange
Technical Scripter 2020
DSA
C++ Program to Modify a matrix by rotating ith row exactly i times in clockwise direction
Given a matrix mat[][] of dimensions M * N, the task is to print the matrix obtained after rotating every ith row of the matrix i times in a clockwise direction.Examples:I...
Read More
Arrays
Matrix
Technical Scripter
rotation
array-rearrange
C++
C++ Programs
Technical Scripter 2020
DSA
Length of longest subarray with smaller elements on immediate left for each Array element
Given an array arr[] of length N, the task is to find the length of the longest subarray with smaller elements on the immediate left for each element in the given array.Ex...
Read More
Arrays
Searching
Mathematical
subarray
DSA
Maximise count of elements that are strictly greater in a subsequence than their average
Given an array arr[] of size N containing positive integers, the task is to find the maximum number of elements that can be deleted from the array using any number of oper...
Read More
Arrays
Searching
subsequence
median-finding
DSA
Maximum median possible by generating an Array of size N with sum X
Given two positive integers N and X. The task is to print the maximum median possible by generating an Array of size N with sum XExamples:Input: N = 1, X = 7Output: 7Expla...
Read More
Greedy
Mathematical
median-finding
DSA
Largest subset with composite sum in given Array
Given an array arr[] consisting of n distinct positive integers. Find the length of the largest subset in the given array which sums to a composite number and print the re...
Read More
Arrays
subset
number-theory
DSA
Time Difference between given times in HH:MM:SS format
Given 2 times 'st' and 'et' in HH: MM: SS format. The task is to print the time difference between st and et in HH:MM: SS formatExamples:Input: st = 13:50:45, et = 14:55:5...
Read More
Strings
Mathematical
DSA
1
...
5055
5056
5057
...
11375