Courses
Tutorials
Jobs
Practice
Contests
Data Structure
Java
Python
HTML
Interview Preparation
AI ML DS
Data Analysis
Data Visualization
Machine Learning
Deep Learning
NLP
Computer Vision
AI ML DS Interview Series
AI ML DS Projects series
Data Engineering
Web Scrapping
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
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
Smallest K digit number divisible by all numbers in given array
Given an array arr[]. The task is to create the smallest K digit number divisible by all numbers of arr[].Examples:Input: arr[] = {2, 3, 5}, N = 3Output: 120Explanation: 1...
Read More
Greedy
Mathematical
GCD-LCM
number-digits
divisibility
DSA
Minimize operations to transform A to B by multiplying by 2 or appending 1 to it
Given two numbers A and B, the task is to find the minimum number of the following operations to transform A to B:Multiply the current number by 2 (i.e. replace the number...
Read More
Mathematical
Game Theory
Recursion
DSA
Count of all unique paths from given source to destination in a Matrix
Given a 2D matrix of size n*m, a source ‘s’ and a destination ‘d’, print the count of all unique paths from given ‘s’ to ‘d’. From each cell, you can either move only to t...
Read More
Backtracking
Matrix
Recursion
DSA
Multiset of Tuples in C++ with Examples
What is a tuple?A tuple in C++ is an object which binds a group of elements together. The elements can be similar as well as different data types. The elements of tuples a...
Read More
STL
C++
cpp-multiset
cpp-tuple
Absolute difference of all pairwise consecutive elements in a Set
Given a set of integers of N elements. The task is to print the absolute difference of all of the pairwise consecutive elements in a set. Pairwise consecutive pairs of a s...
Read More
Arrays
Searching
Mathematical
C++ Programs
cpp-set
DSA
1
...
5077
5078
5079
...
11416