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
Python oct() Function
Python oct() function takes an integer and returns the octal representation in a string format. In this article, we will see how we can convert an integer to an octal in P...
Read More
Python
Python-Built-in-functions
DoubleStream reduce(double identity, DoubleBinaryOperator op) in Java with Examples
DoubleStream reduce(double identity, DoubleBinaryOperator op) performs a reduction on the elements of this stream, using the provided identity value and an associative acc...
Read More
Misc
LongStream reduce(long identity, LongBinaryOperator op) in Java with Examples
LongStream reduce(long identity, LongBinaryOperator op) performs a reduction on the elements of this stream, using the provided identity value and an associative accumulat...
Read More
Misc
IntStream reduce(int identity, IntBinaryOperator op) in Java with Examples
IntStream reduce(int identity, IntBinaryOperator op) performs a reduction on the elements of this stream, using the provided identity value and an associative accumulation...
Read More
Misc
How to clear screen in python?
Most of the time, while working with Python interactive shell/terminal (not a console), we end up with a messy output and want to clear the screen for some reason. In an i...
Read More
Technical Scripter
Python
Operating Systems Questions
Python Programs
Linux-Unix
Center element of matrix equals sums of half diagonals
Given a matrix of odd order i.e(5*5). Task is to check if the center element of the matrix is equal to the individual sum of all the half diagonals.Examples:Input : mat[][...
Read More
Misc
Matrix
Technical Scripter
DSA
Longest common suffix of two linked lists
Given two singly linked lists, find the Longest common suffix of two linked lists. If there are no common characters which are suffixes, return the minimum length of the t...
Read More
Linked List
Technical Scripter
Reverse
DSA
Leftover element after performing alternate Bitwise OR and Bitwise XOR operations on adjacent pairs
Given an array of N(always a power of 2) elements and Q queries.Every query consists of two elements, an index, and a value... We need to write a program that assigns valu...
Read More
Bit Magic
Advanced Data Structure
Segment-Tree
Bitwise-XOR
Data Structures
Bitwise-OR
DSA
Generate a list of n consecutive composite numbers (An interesting method)
Given a number n, generate a list of n composite numbers.Examples:Input : 5Output : 122, 123, 124, 125Input : 10Output : 3628802, 3628803, 3628804, 3628805, 3628806, ...
Read More
Mathematical
DSA
ISRO | ISRO CS 2015 | Question 80
The correct syntax to write "Hi there" in Javascript is(A) jscript.write ("Hi There");(B) document.write ("Hi There");(C) print ("Hi There");(D) print.jscript ("Hi There")...
Read More
ISRO
SED command in Linux | Set 2
We have discussed some of the SED command options in Sed Command in Linux/Unix with examplesSED is used for finding, filtering, text substitution, replacement and text man...
Read More
Linux-Unix
Priority of process in Linux | nice value
The running instance of program is process, and each process needs space in RAM and CPU time to be executed, each process has its priority in which it is executed.Now obse...
Read More
linux-command
Linux-Unix
Height of a complete binary tree (or Heap) with N nodes
Consider a Binary Heap of size N. We need to find the height of it.Examples:Input : N = 6Output : 2 () / \ () () / \ / () () ()Input : N ...
Read More
Tree
Heap
DSA
Range Queries for Longest Correct Bracket Subsequence
Given a bracket sequence or in other words a string S of length n, consisting of characters '(' and ')'. Find the length of the maximum correct bracket subsequence of sequ...
Read More
Strings
Stack
Advanced Data Structure
Technical Scripter
Segment-Tree
array-range-queries
DSA
PHP str_pad to print string patterns
str_pad: Pad a string to a certain length with another string.Syntax:- str_pad (input, pad_length, pad_string_value, pad_type)It returns the padded string.Parameters Descr...
Read More
Web Technologies
PHP-string
1
...
11346
11347
11348
...
11540