You are given a non-negative integer array. Your task is to return the maximum (highest) value present in the array.
Example:
Input: [1, 9, 3, 7, 5]
Output: 9
I sorted the array using a for loop and then printed the last element (which represents the maximum value).
You are given a string consisting of lowercase English letters. Your task is to identify the substring that occurs the highest number of times and return the count of its occurrences.
I used a Boolean array to keep track of visited characters.
You have an array in pairs of two numbers. You need to find the overlapping pairs and combine them into a new pair starting from the first number of the first pair and ending at the last number of the second pair.
I used two nested loops to check the conditions for overlapping pairs. Whenever I found an overlap, I combined the pairs into a single pair starting with the first number of the first pair and ending with the last number of the second pair.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?