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
Three 90 Challenge: Bigger and Better
As we transit into the new phase, it's essential to fuel our inner drive for success. On popular demand, GeeksforGeeks is happy to announce that we are back with the Thre...
Read More
Class 12 RD Sharma Solutions - Chapter 19 Indefinite Integrals - Exercise 19.22
Question 1. Evaluate the integral:[Tex]\int\frac{1}{4cos^2x+9sin^2x}dx[/Tex]Solution:Let[Tex]I=\int\frac{1}{4cos^2x+9sin^2x}dx[/Tex]On dividing numerator and denominator b...
Read More
Picked
Mathematics
School Learning
Class 12
RD Sharma Solutions
RD Sharma Class-12
Minimum bridges required to be crossed to reach N<sup>th</sup> city
Given an integer N denoting the number of connected cities ( numbered from 1 to N ) and a 2D array arr[][] consisting of pairs connected to each other by bidirectional bri...
Read More
Arrays
Graph
Queue
Algorithms
Amazon-Question
interview-preparation
BFS
Algorithms-Graph Traversals
cpp-queue
DSA
Queries to find the maximum and minimum array elements excluding elements from a given range
Given an array arr[] consisting of N integers and an array Q[][] consisting of queries of the form [L, R]., the task for each query is to find the maximum and minimum arra...
Read More
Arrays
Misc
Searching
Mathematical
array-range-queries
prefix
Suffix
DSA
Check if all disks can be placed at a single rod based on given conditions
Given an array arr[] consisting of N integers representing N rods each with a disk of radius arr[i], the task is to check if it is possible to move all disks to a single r...
Read More
Arrays
Greedy
Searching
DSA
Count ways to make product of array elements even by replacements
Given an array arr[] consisting of N integers, the task is to count the number of ways to make the product of array elements even by replacing array elements any number of...
Read More
Arrays
Combinatorial
Technical Scripter
array-rearrange
Technical Scripter 2020
DSA
Check if an array can be sorted by swapping pairs from indices consisting of unequal elements in another array
Given an array A[] of size N and a binary array B[] of size N, the task is to check if the array A[] can be converted into a sorted array by swapping pairs (A[i], A[j]) if...
Read More
Arrays
Sorting
Mathematical
array-rearrange
DSA
Split a string into maximum number of unique substrings
Given string str, the task is to split the string into the maximum number of unique substrings possible and print their count.Examples:Input: str = "ababccc"Output: 5Expla...
Read More
Strings
Backtracking
substring
partition
DSA
Check if two strings can be made equal by swapping pairs of adjacent characters
Given two strings A and B of length N and M respectively and an array arr[] consisting of K integers, the task is to check if the string B can be obtained from the string ...
Read More
Strings
Greedy
Hash
Technical Scripter
cpp-map
frequency-counting
Technical Scripter 2020
DSA
Generate a matrix having each element equal to the sum of specified submatrices of a given matrix
Given a matrix mat[][] of dimensions M*N and an integer K, the task is to generate a matrix answer[][], where answer[i][j]is equal to the sum of all elements mat[r][c][/c]...
Read More
Algorithms
Matrix
Technical Scripter
prefix-sum
Technical Scripter 2020
DSA
Smallest positive integer that does not divide any elements of the given array
Given an array arr[] consisting of N positive integers, the task is to determine the smallest positive integer K such that none of the array elements is divisible by K.Exa...
Read More
Arrays
Algorithms
Searching
Mathematical
divisibility
DSA
Find the last player to be able to remove a string from an array which is not already removed from other array
Given two arrays of strings arr[] and brr[] of size N and M respectively, the task is to find the winner of the game when two players play the game optimally as per the fo...
Read More
Arrays
Strings
array-rearrange
DSA
Find the duplicate characters in a string in O(1) space
Given a string str, the task is to find all the duplicate characters present in a given string in lexicographical order without using any additional data structure.Example...
Read More
Strings
Bit Magic
Searching
C++
frequency-counting
DSA
Maximize count of subsets into which the given array can be split such that it satisfies the given condition
Given an array arr[] of size N and a positive integer X, the task is to partition the array into the maximum number of subsets such that the multiplication of the smallest...
Read More
Arrays
subset
Greedy
Sorting
partition
DSA
Minimize insertions required to make all characters of a given string equal
Given a binary string S of length N, the task is to find the minimum number of characters required to be inserted such that all the characters in the string becomes the sa...
Read More
Strings
Greedy
Searching
DSA
Minimize flips required such that string does not any pair of consecutive 0s
Given a binary string S, the task is to find the minimum count of flips required to modify a string such that it does not contain any pair of consecutive 0s.Examples:Input...
Read More
Strings
binary-string
C++
DSA
1
...
6346
6347
6348
...
11202