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
Class 8 RD Sharma Solutions- Chapter 22 Mensuration III (Surface Area And Volume Of Right Circular Cylinder) - Exercise 22.2 | Set 2
Chapter 22 Mensuration III (Surface Area And Volume Of Right Circular Cylinder) - Exercise 22.2 | Set 1Question21. A well is dug 20 m deep and it has a diameter of 7 m. Th...
Read More
Mathematics
School Learning
Class 8
RD Sharma Solutions
RD Sharma Class-8
Count numbers up to N having Kth bit set
Given two integers N and K, the task is to find the count of numbers up to N having K-th (0-based indexing) bit set.Examples:Input: N = 14, K = 2Output: 7Explanation:The n...
Read More
Bit Magic
setBitCount
Searching
Mathematical
maths-power
DSA
Class 11 NCERT Solutions- Chapter 11 Conic Section - Exercise 11.1
In each of the following Exercise 1 to 5, find the equation of the circle withQuestion 1: Centre (0, 2) and radius 2Solution:Given: Centre (0, 2) and radius (r) = 2The equ...
Read More
Picked
Mathematics
School Learning
NCERT
Class 11
NCERT Solutions Class-11
HCF and LCM: Definition, Formula, Full Form, Examples
The full form of HCF is the Highest Common Factor while the full form of LCM is the Least Common Multiple. HCF is the largest number that divides two or more numbers with...
Read More
Picked
Mathematics
School Learning
Class 10
Maths-Class-10
Swap upper and lower triangular halves of a given Matrix
Given a square matrix mat[][] of dimensions N * N, the task is to print the matrix that can be obtained after swapping the laterally inverted images of the upper and lower...
Read More
Greedy
Matrix
array-rearrange
School Programming
DSA
Prices Related to Buying and Selling (Profit and Loss) - Comparing Quantities | Class 8 Maths
A Person can gain profit only if Selling Price Cost Price. Also, a person generates loss when Selling Price Cost Price. So let's understand each term in detail.Selling P...
Read More
Picked
Mathematics
School Learning
Class 8
Count number of triplets (a, b, c) from first N natural numbers such that a * b + c = N
Given an integer N, the task is to count the triplets (a, b, c) from the first N natural numbers such that a * b + c = N.Examples:Input: N = 3Output: 3Explanation:Triplets...
Read More
Mathematical
Competitive Programming
divisibility
DSA
Count Knights that can attack a given pawn in an N * N board
Given a 2D array knights[][] of size N * 2, with each row of the form { X, Y } representing the coordinates of knights, and an array pawn[] representing the coordinates of...
Read More
Arrays
Greedy
Mathematical
Technical Scripter
C++
chessboard-problems
Maths
Technical Scripter 2020
DSA
Find the winner of game of removing array elements having GCD equal to 1
Given an array arr[] of size N, the task is to find the winner of the game when two players play the game optimally as per the following rules:Player 1 starts the game.In ...
Read More
Arrays
Greedy
Mathematical
prime-factor
Game Theory
divisibility
HCF
DSA
How to work with file handling in C++
Prerequisite: File Handling through C++ ClassesIn C++, files are mainly dealt by using three classes fstream, ifstream, ofstream available in fstream header file. In this ...
Read More
Algorithms
Project
Technical Scripter
C++
C-File Handling
File Handling
C++ Programs
Project-Ideas
Technical Scripter 2020
DSA
Shallow Copy and Deep Copy in C++
In general, creating a copy of an object means to create an exact replica of the object having the same literal value, data type, and resources.Copy ConstructorDefault ass...
Read More
cpp-constructor
Programming Language
C++
Constructors
Difference Between
C++ Programs
Template non-type arguments in C++
Prerequisite: Templates in C++Generally, a C++ template, with a single argument looks like this:templatetypename template_nameBut it has been seen that a template can have...
Read More
Technical Scripter
C++
C++-Function Overloading and Default Arguments
C++-Templates
Templates
Technical Scripter 2020
Time complexities of different data structures
Time Complexity is a concept in computer science that deals with the quantification of the amount of time taken by a set of code or algorithm to process or run as a functi...
Read More
time complexity
Analysis of Algorithms
Data Structures
Difference Between
DSA
Calling of overloaded subroutines and ways for finding accurate match in C++
Just like other subroutines, overloaded subroutines are also called. To decide which function to invoke it is important to determine the number and type of arguments. For ...
Read More
CPP-Functions
C++
C++-Function Overloading and Default Arguments
C++ Programs
cpp-overloading
Use cases of mouse programming in C/C++ | Set 2
In this article, we will discuss some use cases of Mouse Programming:Restrict mouse pointer:The mouse pointer can be restricted in particular rectangle. The idea is to cre...
Read More
Articles
Experienced
C Language
C++
C Programs
C++ Programs
Experiences
1
...
6762
6763
6764
...
11360