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
Java Program to Find GCD or HCF of Two Numbers
GCD (i.e. Greatest Common Divisor) or HCF (i.e. Highest Common Factor) is the largest number that can divide both the given numbers.Example:HCF of 10 and 20 is 10, and HCF...
Read More
Java
Java Programs
How Digital Transformation is Reinventing Healthcare Industry?
The recent advancements in science and technology have now redefined each and every aspect of our lives. Increasing numbers of healthcare providers are now transforming th...
Read More
GBlog
Check if sum of array can be made equal to X by removing either the first or last digits of every array element
Given an array arr[] consisting of N positive integers and a positive integer X, the task is to check if the sum of the given array can be made equal to X by removing eith...
Read More
Arrays
Mathematical
number-digits
array-rearrange
Recursion
DSA
Nearest Fibonacci Number to N
Given a positive integer N, the task is to find the nearest Fibonacci number to the given integer N. If there are two Fibonacci Numbers having same difference from N, then...
Read More
Mathematical
Fibonacci
Numbers
DSA
Class 12 RD Sharma Solutions - Chapter 23 Algebra of Vectors - Exercise 23.9
Question 1: Can a vector have direction angles45°,60°, and120°.Solution:We know that if l, m and n are the direction cosines and[Tex]\alpha[/Tex],[Tex]\beta[/Tex]and[Tex]\...
Read More
Picked
Mathematics
School Learning
Class 12
RD Sharma Solutions
RD Sharma Class-12
Permutation of first N natural numbers having given array as the prefix maximum array
Given an array arr[] consisting of N positive integers, the task is to find the permutation of first N natural numbers such that the given array arr[] is the prefix maximu...
Read More
Arrays
Misc
Mathematical
Hash
permutation
cpp-unordered_map
prefix
Natural Numbers
DSA
Queries to calculate maximum Bitwise XOR of X with any array element not exceeding M
Given an array arr[] consisting of N non-negative integers and a 2D array queries[][] consisting of queries of the type {X, M}, the task for each query is to find the maxi...
Read More
Arrays
Bit Magic
Tree
Trie
Advanced Data Structure
Bitwise-XOR
DSA
Check if sequence of removed middle elements from an array is sorted or not
Given an array arr[] consisting of N integers, the task is to check if the sequence of numbers formed by repeatedly removing the middle elements from the given array arr[]...
Read More
Arrays
Sorting
Mathematical
C++ Programs
two-pointer-algorithm
DSA
Class 9 RD Sharma Solutions - Chapter 5 Factorisation of Algebraic Expressions- Exercise 5.4
Factorize each of the following:Question 1. a3 + 8b3 + 64c3 – 24abcSolution:We know thata3 + b3 + c3 – 3abc = (a + b + c) (a2 + b2 + c2 – ab – bc – ca)= a3 + 8b3 + 64c3 – ...
Read More
Picked
Mathematics
School Learning
Class 9
RD Sharma Solutions
RD Sharma Class-9
Partition a string into palindromic strings of at least length 2 with every character present in a single string
Given a string S consisting of N lowercase alphabets, the task is to check if all the strings of at least length 2 formed by selecting every character of the string S only...
Read More
Strings
Mathematical
Hash
frequency-counting
partition
DSA
Class 12 RD Sharma Solutions - Chapter 19 Indefinite Integrals - Exercise 19.14
Question 1. Evaluate ∫1/ a2-b2x2 dxSolution:Let us assume I = ∫ 1/ (a2-b2x2)dxtake 1/b2 common from above equation= 1/b2 ∫ 1/ (a2/b2-x2) dx= 1/b2 ∫ 1/ (a/b)2-x2) dxIntegra...
Read More
Picked
Mathematics
School Learning
Class 12
RD Sharma Solutions
RD Sharma Class-12
Minimize swaps required to make the first and last elements the largest and smallest elements in the array respectively
Given an array arr[] consisting of N integers, the task is to find the minimum number of adjacent swaps required to make the first and the last elements in the array the l...
Read More
Arrays
Greedy
Searching
array-rearrange
DSA
Class 12 RD Sharma Solutions - Chapter 29 The Plane - Exercise 29.12
Question 1(i): Find the coordinates of the point where the line through (5, 1, 6) and (3, 4, 1) crosses line through yz-plane.Solution:We know, the equation of line throug...
Read More
Picked
Mathematics
School Learning
Class 12
RD Sharma Solutions
RD Sharma Class-12
Number of smaller circles that can be inscribed in a larger circle
Given two positive integers R1 and R2, where R1 and R2 represent the radius of the larger and smaller circles respectively, the task is to find out the number of smaller c...
Read More
Mathematical
Geometric
Circles
Circle-Theorems
DSA
Modify string by sorting characters after removal of characters whose frequency is not equal to power of 2
Given a string S consisting of N lowercase alphabets, the task is to remove the characters from the string whose frequency is not a power of 2 and then sort the string in ...
Read More
Strings
Hash
frequency-counting
maths-log
maths-power
DSA
1
...
6181
6182
6183
...
11266