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
Number of terms in Geometric Series with given conditions
A geometric progression is a sequence of integers b1, b2, b3, ..., where for each i 1, the respective term satisfies the condition bi = bi-1 * q, where q is called the co...
Read More
Misc
Mathematical
Competitive Programming
series
DSA
Difference between Byte stuffing and Bit stuffing
Data link layer is responsible for something called Framing, which is the division of a stream of bits from the network layer into manageable units (called frames). Each f...
Read More
Computer Networks
GATE CS
Difference Between
Palindromic Selfie Numbers
Given a number x, find it's palindromic selfie number according to selfie multiplicative rule. If such a number doesn't exist, then print "No such number exists".A Palindr...
Read More
Misc
Algorithms
Mathematical
Combinatorial
palindrome
permutation
java-hashset
DSA
Difference between Unipolar, Polar and Bipolar Line Coding Schemes
Data as well as signals that represents data can either be digital or analog. Line coding is the process of converting digital data to digital signals. By this technique w...
Read More
Difference Between
Digital Logic
Python String splitlines() Method
Python String splitlines() method is used to split the lines at line boundaries. The function returns a list of lines in the string, including the line break(optional).Syn...
Read More
Python
Python-Built-in-functions
python-string
Amazon Interview Experience | Set 418 (For SDE 2)
I applied through recruiter, i was having 4 year exp while appearing for this interview, overall it was quite lengthy process.I shared my resume to recruiter and later was...
Read More
Amazon
Interview Experiences
Experienced
Experiences
Maximum rational number (or fraction) from an array
Given rational numbers, the task is to find the maximum rational number.Examples:Input : ra_num = {{1, 2}, {2, 3}, {3, 4}, {4, 5}};O...
Read More
Mathematical
rational-numbers
Fraction
DSA
Python String | strip()
The strip() method in-built function of Python is used to remove all the leading and trailing spaces from a string.Syntax :string.strip([chars])Parameter:chars(optional): ...
Read More
Python
Python-Built-in-functions
python-string
Median and Mode using Counting Sort
Given an n sized unsorted array, find median and mode using counting sort technique. This can be useful when array elements are in limited range.Examples:Input : array a[]...
Read More
Sorting
statistical-algorithms
frequency-counting
counting-sort
median-finding
DSA
reference_wrapper in C++
std::reference_wrapper is a class template that wraps a reference in a copy constructible and copy assignable object or reference to function of type T. Instances of std:...
Read More
CPP-Library
cpp-references
C++
Find the Degree of a Particular vertex in a Graph
Given a graph G(V,E) as an adjacency matrix representation and a vertex, find the degree of the vertex v in the graph.Examples :0-----1|\ || \ || \|2-----3Input : ...
Read More
Graph
graph-basics
DSA
Python String rfind() Method
Python String rfind() method returns the rightmost index of the substring if found in the given string. If not found then it returns -1.Python String rfind() Method Syntax...
Read More
Python
Python-Built-in-functions
python-string
Difference between HashMap and ConcurrentHashMap
HashMap is the Class which is under Traditional Collection and ConcurrentHashMap is a Class which is under Concurrent Collections, apart from this there are various differ...
Read More
Java
Java-Collections
Java-HashMap
Java-Map-Programs
Mathematics | Power Set and its Properties
Prerequisite - Introduction of Set theory, Set Operations (Set theory)For a given set S, Power set P(S) or 2^S represents the set containing all possible subsets of S as i...
Read More
GATE CS
Engineering Mathematics
Discrete Mathematics
Check if it is possible to convert one string into another with given constraints
Given two strings contains three characters i.e 'A', 'B 'and '#' only. Check is it possible to convert first string into another string by performing following operations ...
Read More
Strings
Competitive Programming
DSA
1
...
11896
11897
11898
11899