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
Generate all binary numbers in range [L, R] with same length
Given two positive integer numbers L and R. The task is to convert all the numbers from L to R to binary number. The length of all binary numbers should be same.Examples:I...
Read More
Bit Magic
Mathematical
binary-representation
DSA
Convert all numbers in range [L, R] to binary number
Given two positive integer numbers L and R. The task is to convert all the numbers from L to R to binary number.Examples:Input: L = 1, R = 4Output:11011100Explanation: The...
Read More
Bit Magic
Mathematical
binary-representation
DSA
Hash Functions and Types of Hash functions
Hash functions are a fundamental concept in computer science and play a crucial role in various applications such as data storage, retrieval, and cryptography. In data str...
Read More
Algorithms
Mathematical
Hash
Data Structures
Data Structures-Hash
DSA
unordered set of tuples in C++ with Examples
What is a tuple?A tuple in C++ is an object which is used to group elements together. In a tuple, elements can be of the same data type or different data types. The elemen...
Read More
C++
cpp-unordered_set
cpp-tuple
Map of Tuples in C++ with Examples
What is a tuple?A tuple in C++ is an object that has the ability to group a number of elements. The elements can be of the same type as well as different data types. The o...
Read More
STL
C++
cpp-map
cpp-tuple
How To Create Custom Arduino Library Using C++
What is the Arduino library?Libraries are a collection of precompiled, reusable code or routines which are used by developers to reduce the development time. Arduino libra...
Read More
C++ Programs
IoT
Object Composition-Delegation in C++ with Examples
Object CompositionsAn object is a basic unit of Object-Oriented Programming and represents real-life entities. Complex objects are objects that are built from smaller or a...
Read More
C++
C++-Class and Object
unordered set of Pairs in C++ with Examples
What is pair?Utility header in C++ provides us pair container. A pair consists of two data elements or objects.The first element is referenced as ‘first’ and the second el...
Read More
STL
C++
cpp-unordered_set
cpp-pair
Forward List and List of Tuples in C++ with Examples
What is Forward List?Forward list in STL is used to implement a singly linked list. It was introduced from C++11 onwards, forward lists are more useful than other containe...
Read More
STL
C++
cpp-list
cpp-tuple
CPP-forward-list
Multiset of Pairs in C++ with Examples
What is Multiset?A multiset is an associative container that can hold a number of elements in a specific order. Unlike a set, a multiset can contain multiple occurrences o...
Read More
STL
C++
cpp-pair
cpp-multiset
Multiset of Vectors in C++ with Examples
What is Multiset?A multiset in C++ is an associative container that can hold a number of elements in a specific order. Unlike a set, a multiset can hold multiple copies of...
Read More
STL
cpp-vector
C++
cpp-multiset
unordered set of Vectors in C++ with Examples
What is an unordered set?In C++, an unordered set is an unordered container that can hold a number of unique elements. Unlike a set, elements in an unordered set are not a...
Read More
STL
cpp-vector
C++
cpp-unordered_set
2D Vector of Pairs in C++ with Examples
What is Vector?In C++, a vector is similar to dynamic arrays with the ability to resize itself automatically. Vector elements are stored in contiguous memory locations so ...
Read More
cpp-vector
C++
cpp-pair
Find the missing N-th term of the series 2, 2, 4, 4, 6, 8, 8 ....
Given a number N, find the N-th term in the series 2, 2, 4, 4, 6, 8, 8.........Examples:Input: N = 1Output: 2Input: N = 2Output: 2Input: N = 5Output: 6Approach: Upon caref...
Read More
Pattern Searching
Mathematical
series
arithmetic progression
Geometric Progression
DSA
How to run a code on scroll event in jQuery?
In this article, we will discuss how to run the code when users scroll the content using jQuery. To run the code on scrolling the content, the scroll() method is used. The...
Read More
Web Technologies
JQuery
jQuery-Methods
jQuery-Questions
1
...
5322
5323
5324
...
11665