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
Digital Signatures and Certificates
Encryption - Process of converting electronic data into another form, called ciphertext, which cannot be easily understood by anyone except the authorized parties. This as...
Read More
cryptography
Computer Networks
GATE CS
Spotlight
Print all possible consecutive numbers with sum N
Given a number N. The task is to print all possible consecutive numbers that add up to N.Examples :Input: N = 100Output:9 10 11 12 13 14 15 16 18 19 20 21 22 Input: N = 12...
Read More
Binary Search
Searching
DSA
Queries on subsequence of string
Given a string S and Q queries, each query contains a string T. The task is to print "Yes" if T is a subsequence of S, else print "No".Examples:Input : S = "geeksforgeeks"...
Read More
Strings
subsequence
DSA
Java.io.FileDescriptor in Java
java.io.FileDescriptor works for opening a file having a specific name. If there is any content present in that file it will first erase all that content and put "Beginnin...
Read More
Java
Java-I/O
java-file-handling
reduce() in Python
The reduce(fun,seq) function is used to apply a particular function passed in its argument to all of the list elements mentioned in the sequence passed along.This function...
Read More
Python
Rearrange an array to minimize sum of product of consecutive pair elements
We are given an array of even size, we have to sort the array in such a way that the sum of product of alternate elements is minimum also we have to find that minimum sum....
Read More
Arrays
Sorting
DSA
Smallest number with at least n digits in factorial
Given a number n. The task is to find the smallest number whose factorial contains at least n digits.Examples:Input : n = 1Output : 00! = 1, hence it has 1 digit.Input : n...
Read More
Binary Search
Mathematical
factorial
DSA
SQL Functions (Aggregate and Scalar Functions)
SQL Functions are built-in programs that are used to perform different operations on the database.There are two types of functions in SQL:Aggregate FunctionsScalar Functio...
Read More
Misc
Java.io.PipedReader Class in Java
This class is basically a piped character-input streams.In I/O Piped, simply means a link between two threads running in JVM at the same time. So, Pipes are used both as s...
Read More
Java
Java-I/O
Java.io.PipedWriter Class in Java
This class is basically a piped character-output streams. In I/O Piped, simply means a link between two threads running in JVM at the same time. So, Pipes are used both as...
Read More
Java
Java-I/O
Java.io.ByteArrayOutputStream() Class in Java
java.io.ByteArrayOutputStream class creates an Output Stream for writing data into byte array. The size of buffer grows automatically as data is written to it. There is no...
Read More
Java
Java-I/O
Java.io.ByteArrayInputStream class in Java
ByteArrayInputStream class of java.io package contains all the buffers, containing bytes to be read from the Input Stream. There is no IO exception in case of ByteArrayInp...
Read More
Java
Java-I/O
JavaScript Math log() Method
The JavaScript Math log( ) Method is used to return the natural logarithm (base e) of a number. The JavaScript Math.log() method is equivalent to ln(x) in mathematics. If ...
Read More
Web Technologies
JavaScript
javascript-math
JavaScript-Methods
Last non-zero digit of a factorial
Given a number n, find the last non-zero digit in n!.Examples:Input : n = 5Output : 25! = 5 * 4 * 3 * 2 * 1 = 120Last non-zero digit in 120 is 2.Input : n = 33Output : 8...
Read More
Mathematical
factorial
Modular Arithmetic
Recursion
DSA
Minimum number of power terms with sum equal to n
Given two positive integer n and x. The task is to express n as sum of powers of x (xa1 + xa2 +.....+ xa3) such that the number of powers of x (xa1, xa2, ....., xa3) shoul...
Read More
Mathematical
DSA
1
...
11479
11480
11481
11482