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 steps required to reach the end of Array with a given capacity
Given an array arr[] of size n. You will have to traverse the array from left to right deducting each element of the array from the initial capacity, such that your initia...
Read More
Arrays
Searching
DSA
Difference Between Protic and Aprotic Solvents
Difference Between Protic and Aprotic Solvents: Solvents are important components of many chemical reactions because they aid in the dissolution of reactants and the creat...
Read More
Difference Between
Picked
SSC/Banking
Versus
Chemistry-Difference-Between
Find sequence of operations to convert 1 to N using Multiply-by-2-Add-1 or Subtract-1
Given an integer N, the task is to find a sequence of operations to convert 1 to N. You can perform any number of operations, and the goal is to reach the number N using t...
Read More
Mathematical
DSA
Count of Subarrays with sum equals k in given Binary Array
Given a binary array arr[] and an integer k, the task is to find the count of non-empty subarrays with a sum equal to k.Examples:Input: arr[] = {1, 0, 1, 1, 0, 1}, k = 2Ou...
Read More
Arrays
subarray
Picked
DSA
Remove all occurrences of a string t in string s using Boyer-Moore Algorithm
Given a string s and string t, the task is to remove all occurrences of a string t in a string s using the Boyer-Moore algorithm.Examples:Input: s = "ababaababa", t = "aba...
Read More
Strings
String Duplicates
Pattern Searching
substring
strings
DSA
Replace every node in linked list with its closest fibonacci number
Given a singly linked list of integers, the task is to replace every node with its closest Fibonacci number and return the modified linked list.Examples:Input: List: 3-5-9...
Read More
Linked List
Linked Lists
Fibonacci
DSA
Counting pairs in an Array with given condition
Given an array arr[] of integers of size n where n is even, the task is to calculate the number of pairs (i, j), where a pair is counted if( 0 ≤ i n/2, n/2 ≤ j n, arr[i]...
Read More
Arrays
Sorting
DSA
Maximize ascii sum removing K characters in String
Given a string s and an integer K, the task is to remove K characters from the string such that the sum of ASCII (American Standard Code for Information Interchange) value...
Read More
Strings
Data Structures
ASCII
strings
DSA
Check if most frequent element in Linked list is divisible by smallest element
Given a Linked list, the task is to check if the most frequently occurring element in the linked list is divisible by the smallest element in the linked list. If divisible...
Read More
Linked List
Linked Lists
DSA
When You Should Upgrade Your Smartphone?
Innovation is advancing at a particularly fast speed. Innovative advancements are likewise unique in nature. When the most up-to-date form of a telephone, tablet, or PC is...
Read More
Misc
GBlog
misc
Minimize cost to move from [0, 0] to [N-1, M-1] using given orthogonal and diagonal moves
Given a matrix A[][] of size N * M columns each element consists of either 0 representing free space and 1 representing wall. In one operation you can move from the curren...
Read More
Matrix
BFS
DSA
Program to Division two integers of given base
Given three positive integers Base B, Dividend, and Divisor, where Dividend and Divisor are Base-B integers, the task is to find dividend/divisor.Examples:Input: Dividend ...
Read More
Mathematical
DSA
Top 10 Cyber Security Specialist Skills in 2024
Today we're dependent on the Internet and the ease of accessibility of the Internet has made us surrounded by technology. Whether for listening to music, watching movies, ...
Read More
GBlog
Cyber-security
Find winner in the game of Binary Array
Given a binary array X[] of size N. Two players A and B are playing games having the following rules, then the task is to determine the winner if B starts first and both p...
Read More
Arrays
Greedy
Competitive Programming
Algorithms-Greedy Algorithms
Greedy Algorithms
Java-Competitive-Programming
DSA
Build Array of length N such that exactly X Subarrays have positive sums
Given integers N and X, the task is to construct an array of size N such that exactly X subarrays have positive sums and other subarrays have negative sums.Note: If multip...
Read More
Arrays
Competitive Programming
Arrays
subarray-sum
DSA
1
...
2749
2750
2751
...
11245