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
Coalesced hashing
Coalesced hashing is a collision avoidance technique when there is a fixed sized data. It is a combination of both Separate chaining and Open addressing. It uses the conce...
Read More
Misc
Hash
Advanced Data Structure
DSA
Number with set bits only between L-th and R-th index
Given L and R. The task is to find the number in whose binary representation all bits between the L-th and R-th index are set and the rest of the bits are unset. The binar...
Read More
Bit Magic
Algorithms
Algorithms-Bit Algorithms
DSA
Find n-th node in Preorder traversal of a Binary Tree
Given a Binary tree and a number N, write a program to find the N-th node in the Preorder traversal of the given Binary tree.Prerequisite: Tree TraversalExamples:Input: ...
Read More
Tree
Preorder Traversal
Binary Tree
tree-traversal
DSA
Largest of two distinct numbers without using any conditional statements or operators
Given two positive and distinct numbers, the task is to find the greatest of two given numbers without using any conditional statements(if...) and operators(?: in C/C++/Ja...
Read More
Puzzles
School Programming
Aptitude
C++ Quiz
C++ Programs
Check if a string has m consecutive 1's or 0's
Given a binary string and a number m, the task is to check if the string has m consecutive 1's or 0's.Examples:Input : str = "001001", m = 2Output : YESInput : str = "1000...
Read More
Misc
Strings
binary-string
C++ Programs
DSA
Java AWT | MouseInfo and PointerInfo
MouseInfo and PointerInfo is a part of Java AWT. MouseInfo provides information about the location of the pointer and the number of buttons on the mouse. PointerInfo provi...
Read More
Java
Java-AWT
Advantages of vector over array in C++
We have already discussed arrays and vectors. In this post, we will discuss advantages of vector over normal array. Advantages of Vector over arrays :Vector is template cl...
Read More
Arrays
cpp-array
cpp-vector
Data Structures
Difference Between
DSA
Python | Count the Number of matching characters in a pair of string
Given a pair of non-empty strings. Count the number of matching characters in those strings (consider the single count for the character which have duplicates in the strin...
Read More
Python
python-string
Python string-programs
python
Developing a Linux based shell
What is a shell?It's the visible part of an operating system that users interact with, users interact with the operating system by providing commands to the shell, which i...
Read More
Computer Subject
Compiler Design
Maximise the number of toys that can be purchased with amount K
Given an array consisting of the cost of toys. Given an integer K depicting the amount of money available to purchase toys. Write a program to find the maximum number of t...
Read More
Arrays
Sorting Quiz
Sorting
DSA
Java AWT | Color Class
The Color class is a part of Java Abstract Window Toolkit(AWT) package. The Color class creates color by using the given RGBA values where RGBA stands for RED, GREEN, BLUE...
Read More
Java
Java-AWT
Data types in TypeScript
When you create a variable, you're planning to give it a value. But what kind of value it can hold depends on the variable's data type. In TypeScript, the type system defi...
Read More
Web Technologies
JavaScript
TypeScript
JavaScript-Questions
Longest Decreasing Subsequence
Given an array of N integers, find the length of the longest subsequence of a given sequence such that all elements of the subsequence are sorted in strictly decreasing or...
Read More
Dynamic Programming
Algorithms-Dynamic Programming
DSA
Sort the biotonic doubly linked list | Set-2
Sort the given biotonic doubly linked list. A biotonic doubly linked list is a doubly-linked list which is first increasing and then decreasing. A strictly increasing or a...
Read More
Linked List
doubly linked list
Linked-List-Sorting
DSA
list push_back() function in C++ STL
The list:push_back() function in C++ STL is used to add a new element to an existing list container. It takes the element to be added as a parameter and adds it to the lis...
Read More
STL
CPP-Functions
C++
1
...
11205
11206
11207
...
11560