Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.1K+ articles
JavaScript
12.2K+ articles
School Learning
11.5K+ articles
Java
10.8K+ articles
Misc
8.8K+ articles
Mathematical
7.8K+ articles
Algo Geek
259+ posts
Recent Articles
Popular Articles
Lexicographically smallest string by repeatedly moving one of first K characters to end
Last Updated: 14 March 2023
Given a string str and a positive integer K. In an operation, you can select a character from the first K characters and move it to the end, the task is to find the smalle...
read more
Strings
Competitive Programming
TrueGeek
Algo Geek
DSA
Minimize count of peaks and troughs in given Array after at most one replacement
Last Updated: 29 July 2022
Given an array arr[] containing N positive integers, the task is to minimize the total count of peaks (elements having greater value than both the neighbours) and troughs ...
read more
Arrays
Greedy
Mathematical
Algo Geek
Algo-Geek 2021
DSA
Maximum distance between Peaks in given Linked List
Last Updated: 30 August 2024
Given a linked list of length n, the task is to determine the maximum distance between two consecutive peaks of the given linked list. A peak is a node with a value greate...
read more
Linked List
Greedy
Algo Geek
Algo-Geek 2021
DSA
Reduce given Array to 0 by maximising sum of chosen elements
Last Updated: 06 March 2023
Given an array arr[] containing N positive integers, the task is to maximize the array sum when after every sum operation all the remaining array elements decrease by 1.No...
read more
Arrays
Greedy
Sorting
Mathematical
Algo Geek
Algo-Geek 2021
DSA
Find sum of first N terms of the series 5, 11, 19, 29, 41, . . .
Last Updated: 12 July 2022
Given an integer N. The task is to find the sum of the first N terms of the series 5, 11, 19, 29, 41, . . . till Nth term.Examples:Input: N = 5Output: 105Explanation: 5 + ...
read more
Mathematical
series-sum
Algo Geek
Algo-Geek 2021
DSA
Find all pairwise sum possible using elements at opposite ends with minimum replacements
Last Updated: 23 February 2022
Given an array arr[] of even length N and an integer K denoting the range of numbers in the array i.e. the numbers in the array are in the range [1, K]. The task is to fin...
read more
Arrays
Dynamic Programming
Greedy
Mathematical
Algo Geek
Algo-Geek 2021
DSA
Find index of pair among given pairs with just greater average
Last Updated: 14 December 2022
Given an array of pairs arr[] of size N where the first value of all the pairs are distinct. For each pair of the given array find the index of another pair which have an ...
read more
Arrays
Greedy
Searching
Sorting
Mathematical
Algo Geek
Algo-Geek 2021
DSA
Maximum count of unique index 10 or 01 substrings in given Binary string
Last Updated: 09 February 2022
Given a binary string str of length N, the task is to count the maximum number of adjacent pairs of form "01" or "10" that can be formed from the given binary string when ...
read more
Strings
Greedy
Mathematical
binary-string
substring
Algo Geek
Algo-Geek 2021
DSA
Find nth term of the series 3, 8, 15, 24, . . .
Last Updated: 20 August 2022
Given an integer N, the task is to find the Nth term of the series3, 8, 15, 24, . . .till Nth termExamples:Input: N = 5Output: 35Input: N = 6Output: 48Approach:From the gi...
read more
Mathematical
series
Algo Geek
Algo-Geek 2021
DSA
Find sum of N terms of series 1, (1+4) , (1+4+4^2), (1+4+4^2+4^3), .....
Last Updated: 20 August 2022
Given a positive integer, N. Find the sum of the first N term of the series-1, (1+4), (1+4+42), (1+4+42+43), ...., till N termsExamples:Input: N = 3Output: 27Input: N = 5O...
read more
Mathematical
series
Algo Geek
Algo-Geek 2021
DSA
Find nth term of series 3, 11, 31, 69, . . . . .
Last Updated: 20 August 2022
Given an integer N, the task is to find the Nth term of the series3, 11, 31, 69, . . . . . till Nth term.Examples:Input: N = 3Output: 31Input: N = 6Output: 223Approach:Fro...
read more
Mathematical
series
Algo Geek
Algo-Geek 2021
DSA
Find the Nth term of the series 3,10,21,36,55...
Last Updated: 19 April 2023
Given a positive integer N, the task is to find the Nth term of the series3, 10, 21, 36, 55...till N termsExamples:Input: N = 4Output: 36Input: N = 6Output: 78Approach:Fro...
read more
Mathematical
series
Algo Geek
Algo-Geek 2021
DSA
Find nth term of 0, 9, 24, 45, . . . .
Last Updated: 01 February 2022
Given a natural number N, the task is to find the Nth term of the series0, 9, 24, 45, . . . .till N termsExamples:Input: N = 4Output: 45Input: N = 6Output: 105Approach:Fro...
read more
Mathematical
series
Algo Geek
Algo-Geek 2021
DSA
Find nth term of the series 2, 8, 18, 32, 50, . . . .
Last Updated: 23 June 2022
Given an integer N, the task is to find the Nth term of the series2, 8, 18, 32, 50, ....till N termsExamples:Input: N = 4Output: 32Input: N = 6Output: 72Approach:From the ...
read more
Mathematical
series
Algo Geek
Algo-Geek 2021
DSA
Minimize total cost of picking K unique subsequences from given string
Last Updated: 02 March 2022
Given a string S of length N and a positive integer K, the task is to find the minimum total cost of picking K unique subsequence of the given string S such that the cost ...
read more
Strings
Dynamic Programming
Greedy
subsequence
Algo Geek
Algo-Geek 2021
DSA
1
2
3
4
...
18
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !