0% found this document useful (0 votes)
2 views

ARRAY QUESTIONS

The document lists various array-related questions along with their corresponding sources, primarily from 'PrepInsta' and 'A2Z'. The questions cover a wide range of topics including finding elements, sorting, searching, and manipulating arrays. It serves as a comprehensive guide for practicing array problems.

Uploaded by

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

ARRAY QUESTIONS

The document lists various array-related questions along with their corresponding sources, primarily from 'PrepInsta' and 'A2Z'. The questions cover a wide range of topics including finding elements, sorting, searching, and manipulating arrays. It serves as a comprehensive guide for practicing array problems.

Uploaded by

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

ARRAY QUESTIONS:

S.No Question Sheet


1 Find Largest element in an array PrepInsta
2 Find Smallest Element in an Array PrepInsta
3 Find the Smallest and largest PrepInsta
element in an array
4 Find Second Smallest Element in PrepInsta
an Array
5 Calculate the sum of elements in PrepInsta
an array
6 Reverse an Array PrepInsta,
NQT
7 Sort first half in ascending order PrepInsta
and second half in descending
8 Sort the elements of an array PrepInsta
9 Finding the frequency of PrepInsta
elements in an array
10 Sorting elements of an array by PrepInsta,
frequency NQT
11 Finding the Longest Palindrome PrepInsta
in an Array
12 Counting Distinct Elements in an PrepInsta
Array
13 Finding Repeating elements in an PrepInsta,
Array NQT
14 Finding Non-Repeating elements PrepInsta,
in an Array NQT
15 Removing Duplicate elements PrepInsta
from an array
16 Remove duplicates from a sorted NQT, A2Z
array
17 Remove duplicates from an NQT
unsorted array
18 Find all Symmetric pairs in an PrepInsta,
array NQT
19 Find maximum product sub-array PrepInsta,
in a given array A2Z
20 Finding Minimum scalar product PrepInsta
of two vectors
21 Finding Maximum scalar product PrepInsta
of two vectors in an array
22 Counting the number of even PrepInsta
and odd elements in an array
23 Replace each element of the PrepInsta,
array by its rank in the array NQT
24 Find the median of the given NQT
array
25 Finding equilibrium index of an PrepInsta,
array NQT
26 Rotate array by K elements - PrepInsta,
Block Swap Algorithm NQT
27 Balanced Parenthesis Problem PrepInsta
28 Second Smallest and Second NQT
Largest element in an array
29 Check if Array is a subset of PrepInsta,
another array or not NQT
30 Average of all elements in an NQT
array
31 Adding Element in an array NQT
32 Search an element in an array NQT
33 Rotation of elements of array- PrepInsta,
left and right NQT
34 Finding Circular rotation of an PrepInsta,
array by K positions NQT
35 Sort an array according to the PrepInsta,
order defined by another array NQT
36 Second Largest Element in an A2Z
Array without sorting
37 Check if the array is sorted A2Z
38 Left Rotate an array by one place A2Z
39 Left rotate an array by D places A2Z
40 Move Zeros to end A2Z
41 Linear Search A2Z
42 Find the Union A2Z
43 Find missing number in an array A2Z
44 Maximum Consecutive Ones A2Z
45 Find the number that appears A2Z
once, and other numbers twice
46 Longest subarray with given sum A2Z
K (positives)
47 Longest subarray with sum K A2Z
(Positives + Negatives)
48 2Sum Problem A2Z
49 Sort an array of 0's, 1's, and 2's A2Z
50 Majority Element (>n/2 times) A2Z
51 Kadane's Algorithm, maximum A2Z
subarray sum
52 Print subarray with maximum A2Z
subarray sum
53 Stock Buy and Sell A2Z
54 Rearrange the array in A2Z
alternating positive and negative
items
55 Next Permutation A2Z
56 Leaders in an Array problem A2Z
57 Longest Consecutive Sequence in A2Z
an Array
58 Set Matrix Zeros A2Z
59 Rotate Matrix by 90 degrees A2Z
60 Print the matrix in spiral manner A2Z
61 Count subarrays with given sum A2Z
62 Pascal's Triangle A2Z
63 Majority Element (n/3 times) A2Z
64 3-Sum Problem A2Z
65 4-Sum Problem A2Z
66 Largest Subarray with 0 Sum A2Z
67 Count number of subarrays with A2Z
given XOR K
68 Merge Overlapping Subintervals A2Z
69 Merge two sorted arrays without A2Z
extra space
70 Find the repeating and missing A2Z
number
71 Count Inversions A2Z
72 Reverse Pairs A2Z

You might also like