0% found this document useful (0 votes)
155 views2 pages

Array Operations and Problems Guide

The document provides 10 links to resources on different array problems and operations including: types of arrays, arrays in C/C++, checking if an array is sorted, reversing an array, removing duplicates from a sorted array, finding the second largest element, left rotating an array, finding leaders in an array, the maximum difference problem, and finding frequencies of elements in a sorted array.

Uploaded by

samir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
155 views2 pages

Array Operations and Problems Guide

The document provides 10 links to resources on different array problems and operations including: types of arrays, arrays in C/C++, checking if an array is sorted, reversing an array, removing duplicates from a sorted array, finding the second largest element, left rotating an array, finding leaders in an array, the maximum difference problem, and finding frequencies of elements in a sorted array.

Uploaded by

samir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Array

1. Array Types : https://www.geeksforgeeks.org/introduction-to-arrays/


2. Arrays in c/c++ : https://www.geeksforgeeks.org/arrays-in-c-cpp/
3. Check if an array is sorted :
https://practice.geeksforgeeks.org/problems/check-if-an-array-is-
sorted/0
4. Reverse an Array : https://practice.geeksforgeeks.org/problems/reverse-an-
array/0
5. Remove Duplicates from Sorted Array :
https://leetcode.com/problems/remove-duplicates-from-sorted-
array/
6. Find Second largest element in an array :
https://ide.geeksforgeeks.org/Z94jYR
7. Left rotate Array by k :
https://practice.geeksforgeeks.org/problems/quick-left-
rotation/0
8. Leaders in an Array :
https://practice.geeksforgeeks.org/problems/leaders-in-an-
array/0
9. Maximum Difference Problem :
https://practice.geeksforgeeks.org/problems/maximum-
difference/0
10.Frequencies in a Sorted Array : Given a sorted array of positive integers,
the count number of occurrences for each element in the array.

Input: arr[] = [1, 1, 1, 2, 3, 3, 5,


5, 8, 8, 8, 9, 9, 10]
Output:
Element 1 occurs 3 times
Element 2 occurs 1 times
Element 3 occurs 2 times
Element 5 occurs 2 times
Element 8 occurs 3 times
Element 9 occurs 2 times
Element 10 occurs 1 times

Input: arr[] = [2, 2, 6, 6, 7, 7, 7, 11]


Output:
Element 2 occurs 2 times
Element 6 occurs 2 times
Element 7 occurs 3 times
Element 11 occurs 1 times

Input: arr[] = [10,10,10,10]


Output:
Element 10 occurs 4 times

Input: arr[] = [10,20,30]


Output:
Element 10 occurs 1 times
Element 20 occurs 1 times
Element 30 occurs 1 times

You might also like