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
Comparing two ArrayList In Java
Java provides a method for comparing two Array List. The ArrayList.equals() is the method used for comparing two Array List. It compares the Array lists as, both Array lis...
Read More
Java
Technical Scripter
Java Programs
Java-ArrayList
Picked
Technical Scripter 2020
How to Copy and Add all List Elements to an Empty ArrayList in Java?
We can copy and add List items in Array List using addAll() method. This method accepts a Collection (Ex. List) as an argument and adds the collection items at the end of ...
Read More
Java
Technical Scripter
Java Programs
Picked
Technical Scripter 2020
How to Check whether Element Exists in Java ArrayList?
Java ArrayList is a resizable array, which can be found in java.util package. We can add or delete elements from an ArrayList whenever we want, unlike a built-in array.We ...
Read More
Java
Java-Collections
Java-ArrayList
Picked
Top 10 Cybersecurity Tools That You Should Know
This is the age of the internet! And at this age, it is very important to secure your data on the internet. After all, you wouldn’t want to give a hacker access to all you...
Read More
GBlog
Cyber-security
Listicles
Partition string into two substrings having maximum number of common non-repeating characters
Given a string str, the task is to find the maximum count of common non-repeating characters that can be obtained by partitioning the given string into two non-empty subst...
Read More
Strings
Searching
Hash
Advanced Data Structure
Technical Scripter
cpp-map
frequency-counting
substring
Technical Scripter 2020
DSA
Longest Substring of 1's after removing one character
Given a binary string S of length N, the task is to find the longest substring consisting of '1's only present in the string after deleting a character from the string.Exa...
Read More
Strings
Algorithms
Searching
Technical Scripter
Competitive Programming
interview-preparation
sliding-window
Data Structures
substring
Technical Scripter 2020
DSA
What is Open API in UNIX?
There is a set of generic APIs in UNIX which is used to manipulate files. One of these APIs is the open API. The open API is used to create new files and also to establish...
Read More
Linux-Unix
Lexicographically smallest string possible by inserting given character
Given a string S and a character C, the task is to place a character in the string in such a way that the string obtained is the lexicographically smallest string.Examples...
Read More
Strings
Searching
Technical Scripter
lexicographic-ordering
Technical Scripter 2020
DSA
Check if concatenation of splitted substrings of two given strings forms a palindrome or not
Given two strings a and b of the same length, the task is to check if splitting both the strings and concatenating their opposite substrings, i.e. concatenating the left s...
Read More
Strings
Searching
palindrome
two-pointer-algorithm
partition
DSA
Largest Non-Repeating Element
Given an array arr[] of size N, the task is to find the largest non-repeating element present in the given array. If no such element exists, then print -1.Examples:Input: ...
Read More
Arrays
Searching
Hash
Arrays
cpp-unordered_map
frequency-counting
DSA
Construct an array of first N natural numbers having no triplet (i, j, k) such that a[i] + a[j] = 2* a[k] where i < j< k
Given a positive integer N, the task is to construct an array a[] using first N natural numbers which contains no such triplet (i, j, k) satisfying a[k] * 2 = a[i] + a[j] ...
Read More
Arrays
Greedy
Divide and Conquer
Searching
array-rearrange
Greedy Algorithms
C++ Programs
DSA
Check if any subarray can be made palindromic by replacing less than half of its elements
Given an array arr[] of size N, the task is to check if any subarray from the given array can be made a palindrome by replacing less than half of its elements (i.e. floor[...
Read More
Arrays
Greedy
Searching
Hash
array-rearrange
subarray
cpp-map
frequency-counting
DSA
Rearrange given array such that no array element is same as its index
Given an array arr[] consisting of N distinct integers, the task is to rearrange the array such that no element is same as its index ( 1-based indexing ). If multiple solu...
Read More
Arrays
Sorting
Technical Scripter
array-rearrange
Technical Scripter 2020
DSA
Find a pair of intersecting ranges from a given array
Given a 2D array ranges[][] of size N * 2, with each row representing a range of the form [L, R], the task is to find two ranges such that the first range completely lies ...
Read More
Arrays
Searching
Sorting
Mathematical
cpp-vector
cpp-pair
DSA
Minimum shifts of substrings of 1s required to group all 1s together in a given Binary string
Given a binary string S of length N, the task is to print the minimum number of indices, substrings consisting only of 1s are required to be shifted such that all 1s prese...
Read More
Strings
Greedy
Searching
binary-string
frequency-counting
DSA
1
...
6757
6758
6759
...
11239