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
Ways to choose three points with distance between the most distant points <= L
Given a set of n distinct points x1, x2, x3... xn all lying on the X-axis and an integer L, the task is to find the number of ways of selecting three points such that the ...
Read More
Arrays
Searching
Geometric
DSA
Construct Turing machine for L = {a<sup>n</sup> b<sup>m</sup> a<sup>(n+m)</sup> | n,m≥1}
L = {an bm a(n+m) | n,m≥1} represents a kind of language where we use only 2 character, i.e., a and b. The first part of language can be any number of "a" (at least 1). Th...
Read More
GATE CS
Theory of Computation
Static Hazards in Digital Logic
A hazard, if exists, in a digital circuit causes a temporary fluctuation in the output of the circuit. In other words, a hazard in a digital circuit is a temporary disturb...
Read More
GATE CS
Digital Logic
delete keyword in C++
delete is an operator that is used to destroy array and non-array(pointer) objects which are dynamically created by the new operator.delete can be used by either using the...
Read More
Program Output
cpp-operator
C++
Dynamic Memory Allocation
C++ Programs
Find n terms of Fibonacci type series with given first two terms
Given first two numbers of series, find n terms of series with these two numbers. The given series follows the same concept as Fibonacci series, i.e., n-th term is sum of ...
Read More
Fibonacci
series
School Programming
DSA
Amazon Interview Experience | Set 431 (For SDE2)
I was interviewed for SDE2 role at Amazon, Bangalore. I had 3 years of experience at the time of getting interviewed.Round 1 : Coding Test --------------------------------...
Read More
Interview Experiences
Experienced
Experiences
Number of Transpositions in a Permutation
Permutation A permutation is an arrangement of elements. A permutation of n elements can be represented by an arrangement of the numbers 1, 2, ...n in some order. Eg. 5, 1...
Read More
Graph
Algorithms
Mathematical
Competitive Programming
C++
DSA
Ordering Class | Guava | Java
A comparator, with additional methods to support common operations. This is an "enriched" version of Comparator. The common ways to get an instance of Ordering are : Su...
Read More
Misc
Turing Machine for addition
Prerequisite - Turing MachineA number is represented in binary format in different finite automata. For example, 5 is represented as 101. However, in the case of addition ...
Read More
GATE CS
Theory of Computation
TCP flags
In TCP connection, flags are used to indicate a particular state of connection or to provide some additional useful information like troubleshooting purposes or to handle ...
Read More
Technical Scripter
Computer Networks
GATE CS
PHP | readfile( ) Function
The readfile() function in PHP is an inbuilt function which is used to read a file and write it to the output buffer. The filename is sent as a parameter to the readfile()...
Read More
Web Technologies
PHP-function
PHP-file-handling
PHP
PHP | realpath( ) Function
The realpath() function in PHP is an inbuilt function which is used to return the canonicalized absolute pathname.The realpath() function removes all symbolic links such a...
Read More
Web Technologies
PHP-function
PHP-file-handling
PHP
PHP vsprintf() Function
The vsprintf() function in PHP is an inbuilt function and used to display array values as a formatted string. The array elements will be inserted at the percent (%) signs ...
Read More
Web Technologies
PHP-input-output
PHP-function
PHP
8085 program to find the sum of first n natural numbers
Problem - Write an assembly language program for calculating the sum of first n natural numbers using 8085 microprocessor. Example -Input : 04HOutput : 0AHas 01+02+03+04 =...
Read More
system-programming
Computer Organization & Architecture
microprocessor
8085 program to reverse 8 bit number
Problem: Write an assembly language program in 8085 microprocessor to reverse 8-bit numbers.Example:Assume that number to be reversed is stored at memory location 2050, an...
Read More
system-programming
Computer Organization & Architecture
microprocessor
1
...
11249
11250
11251
...
11561