For a sorted array a[] of length n and a value x, you must return both: If either does not…
Browsing: Beginner
Given a sorted array of distinct integers and a target value, return the index if the target is found. If…
In a sorted array arr[], the upper bound of x is the index of the first element that is strictly…
Given a sorted array arr[] and an integer x, find the index (0-based) of the largest element in arr[] that is less than…
Given an array of integers nums which is sorted in ascending order, and an integer target, write a function to search target in nums. If target exists, then…
You’re asked to sort an array using Insertion Sort, but instead of the classic iterative two-loop approach, you must implement…
You’re given an unsorted array of integers and asked to sort it in non-decreasing order using Bubble Sort, but implemented…
The GeeksforGeeks problem “Sum of first n terms” asks you to compute the value of and return the result. All…
The “Print N to 1 without loop” problem on GeeksforGeeks challenges you to output the integers from N down to…
The “Print N times with Recursion” problem on GeeksforGeeks asks you to output the string “GFG” exactly N times, using…