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
Three 90 Challenge: Bigger and Better
As we transit into the new phase, it's essential to fuel our inner drive for success. On popular demand, GeeksforGeeks is happy to announce that we are back with the Thre...
Read More
Minimum cost path from source node to destination node via K intermediate nodes
Given a Graph consisting of N vertices and M weighted edges and an array edges[][], with each row representing the two vertices connected by the edge and the weight of the...
Read More
Graph
Queue
Searching
Mathematical
Technical Scripter
Competitive Programming
C++
priority-queue
DSA
Find the peak index of a given array
Given an array arr[] consisting of N( 2) integers, the task is to find the peak index of the array. If the array doesn't contain any peak index, then print -1.The peak ind...
Read More
Arrays
Searching
Mathematical
Technical Scripter
Technical Scripter 2020
DSA
Modify array of strings by replacing characters repeating in the same or remaining strings
Given an array of strings arr[] consisting of lowercase and uppercase characters only, the task is to modify the array by removing the characters from the strings which ar...
Read More
Arrays
Strings
Searching
Hash
Technical Scripter
array-rearrange
cpp-vector
C++
Data Structures
C Programs
C++ Programs
cpp-unordered_set
cpp-strings
Technical Scripter 2020
DSA
Smallest value of X satisfying the condition X % A[i] = B[i] for two given arrays
Given two arrays A[] and B[], both consisting of N positive integers, an integer P and the elements of the arrayA[] are pairwise co-prime, the task is to find the smallest...
Read More
Arrays
Searching
Mathematical
Technical Scripter
HCF
number-theory
Technical Scripter 2020
DSA
Count numbers up to N that can be expressed as powers of Prime Numbers
Given an integer N, the task is to count numbers from the range [1, N] which are the power of prime numbers.Examples:Input: N = 6Output: 3Explanation:Numbers from the rang...
Read More
Mathematical
sieve
Prime Number
maths-power
DSA
Minimum Time Taken for N Points to coincide
Given an array arr[][] of size N, consisting of pairs of coordinates such that arr[i][0] and arr[i][1] represents the X and Y coordinates in a 2D plane. Given another arra...
Read More
Arrays
Binary Search
Searching
Mathematical
Geometric
Technical Scripter
Technical Scripter 2020
Coordinate Geometry
DSA
Program for average of an array without running into overflow
Given an array arr[] of size N, the task is to find the average of the array elements without running into overflow.Examples:Input: arr[] = { INT_MAX, INT_MAX }Output:Aver...
Read More
Arrays
Mathematical
maths-mean
DSA
Minimum number of jumps required to sort the given array in ascending order
Given two arrays arr[] and jump[], each of length N, where jump[i] denotes the number of indices by which the ith element in the array arr[] can move forward, the task is ...
Read More
Arrays
Searching
Sorting
Mathematical
Technical Scripter
array-rearrange
cpp-vector
cpp-pair
Technical Scripter 2020
DSA
How to Display and Set Hostname in Linux?
Hostname is a unique name for a computer and computer network node in a network. It is also known as a Nodename, computer name or Sitename where it is a label that is assi...
Read More
Technical Scripter
Linux-Unix
Picked
Technical Scripter 2020
Maximum index a pointer can reach in N steps by avoiding a given index B | Set 2
Given two integers N and B, the task is to print the maximum index in an array that can be reached, starting from the 0th index, in N steps without placing itself at index...
Read More
Arrays
Greedy
Mathematical
Technical Scripter
Natural Numbers
DSA
Converting Binary To Octal number using HashMap in Java
Remember while we were converting octal to decimal we were taking 3 binary digits at a time. A similar approach will be used where here for every 3 digits we are having a ...
Read More
Articles
Java-Collections
Java Programs
Java-HashMap
Triangle Inequality Theorem, Proof & Applications
Triangle Inequality is the relation between the sides and angles of triangles which helps us understand the properties and solutions related to triangles. Triangles are th...
Read More
triangle
Mathematics
School Learning
Class 9
Class 12 RD Sharma Solutions - Chapter 23 Algebra of Vectors - Exercise 23.5
Question 1. If the position vector of a point (-4,-3) be[Tex]\overrightarrow{a}[/Tex], find[Tex]|\overrightarrow{a}|[/Tex].Solution:We have,[Tex]\overrightarrow{a} = -4\ha...
Read More
Picked
Mathematics
School Learning
Class 12
RD Sharma Solutions
Program to find the Excenters of a Triangle
Given six integers representing the vertices of a triangle, say A(x1, y1), B(x2, y2), and C(x3, y3), the task is to find the coordinates of the excenters of the given tria...
Read More
Mathematical
Geometric
Technical Scripter
triangle
Technical Scripter 2020
Circles
Coordinate Geometry
Circle-Theorems
DSA
Generate an array having sum of Bitwise OR of same-indexed elements with given array equal to K
Given an array arr[] consisting of N integers and an integer K, the task is to print an array generated such that the sum of Bitwise OR of same indexed elements of the gen...
Read More
Arrays
Bit Magic
Mathematical
Technical Scripter
Bitwise-OR
DSA
1
...
6167
6168
6169
...
11217