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
Minimum moves required to come out of a grid safely
Given a grid mat[][] of size M * N, consisting of only 0s, 1s, and 2s, where 0 represents empty place, 1 represents a person and 2 represents the fire, the task is to coun...
Read More
Amazon
Queue
Searching
Matrix
Amazon-Question
interview-preparation
BFS
DSA
Find the player with least 0s after emptying a Binary String by removing non-empty substrings
Given a binary string S, the task is to determine the winner of the game when two players play a game optimally in alternate turns with the given string, as per the follow...
Read More
Strings
Greedy
Mathematical
binary-string
Game Theory
substring
DSA
Longest subset of nested elements from a given array
Given an array arr[] consisting of a permutation of numbers in the range [0, N - 1], the task is to find the length of the longest subset from the array such that the elem...
Read More
Arrays
subset
Pattern Searching
Searching
Mathematical
DSA
Deprecated attribute in C++14 with Examples
In this article, we will discuss Deprecated attribute in C++14. Deprecated means the use of the name or entity declared with this attribute is allowed but discouraged for ...
Read More
Technical Scripter
C++
C++ Programs
Technical Scripter 2020
Binary literals in C++14 with Examples
In this article, we will discuss Binary literals in C++14.While writing programs which involve mathematical evaluations or various types of number, we usually like to spec...
Read More
Technical Scripter
C++
C++ Programs
Technical Scripter 2020
Return type deduction in C++14 with Examples
In this article, we will discuss Return Type Deduction in C++14. Using an auto return type in C++14, the compiler will attempt to deduce the return type automatically.Prog...
Read More
Technical Scripter
C++
C++ Programs
Technical Scripter 2020
include guards in C++
While programming in C++ we often use a class multiple times, and hence it requires to create a header file and just include it in the main program. Now, sometimes it happ...
Read More
CPP-Basics
C++
Macro & Preprocessor
C++ Programs
Vector of sets in C++
Prerequisite: Vectors in C++ STLVectors are known as dynamic arrays with the ability to resize themselves automatically when an element is inserted or deleted, with their ...
Read More
Competitive Programming
STL
cpp-vector
Data Structures
C++ Programs
cpp-set
DSA
Successor Graph
A Successor Graph is a directed graph in which each vertex has outdegree one, i.e., exactly one edge starts at each node. A successor graph consists of one or more compone...
Read More
Articles
Graph
Algorithms
Analysis of Algorithms
Python
Competitive Programming
Branch and Bound
DSA
Class 12 RD Sharma Solutions - Chapter 2 Functions - Exercise 2.1 | Set 1
Question 1. Give an example of a function(i) Which is one-one but not onto.Solution:Let f: R → R given by f(x) = 3x + 2Let us check one-one condition on f(x) = 3x + 2Injec...
Read More
Picked
Mathematics
School Learning
Class 12
RD Sharma Solutions
RD Sharma Class-12
Class 12 RD Sharma Solutions- Chapter 20 Definite Integrals – Exercise 20.4 Part B
Evaluate of each of the following integrals (1-46):Question 1.[Tex]\int\limits_0^{\frac{π}{2}} \frac{1}{1+tanx}dx[/Tex]Solution:We have,[Tex]\int\limits_0^{\frac{π}{2}} \f...
Read More
Mathematics
School Learning
Class 12
RD Sharma Solutions
RD Sharma Class-12
Java String Class strip() Method With Examples
Java String Class strip() method returns a string that provides a string with all leading and trailing white spaces removed. This method is similar to the String.trim() me...
Read More
Java
Technical Scripter
Java-Strings
Java Programs
Picked
Technical Scripter 2020
Difference Between Collection.stream().forEach() and Collection.forEach() in Java
Collection.forEach() and Collection.stream().forEach() are used for iterating over the collections, there is no such major difference between the two, as both of them give...
Read More
Java
Technical Scripter
Java-Collections
Difference Between
Picked
Technical Scripter 2020
Difference Between ordinal() and compareTo() in Java Enum
Enumerations serve the purpose of representing a group of named constants in a programming language. If we want to represent a group named constant then we should go for E...
Read More
Java
Difference Between
Picked
Java-Enumeration
String Class stripTrailing() Method in Java with Examples
This method is used to strip trailing whitespaces from the string i.e stripTrailing() method removes all the whitespaces only at the ending of the string.Example:Input:Str...
Read More
Java
Java-Strings
Picked
1
...
6597
6598
6599
...
11375