15 Questions that will cover everything in arrays

 15 Questions that will cover everything in arrays


15 Questions that will cover everything in arrays



15 Questions that will cover everything in arrays


Arrays are a simple data structure for storing lots of similar items. They exist in all programming languages and are used as the basis for most other data structures. On their own, Arrays can be used to solve many interesting problems. Arrays come up very often in interview problems, and so being a guru with them is a must!

Questions are:

01. Max Consecutive Ones

02. Numbers with Even Number of Digits

03. Squares of a Sorted Array

04. Duplicate Zeros

05. Merge Sorted Array

06. Remove Element

07. Remove Duplicates from Sorted Array

08. Check If N and Its Double Exist

09. Valid Mountain Array

10. Replace Elements with Greatest Element on Right Side

11. Move Zeroes

12.​ Sort Array By Parity

13. Height Checker

14. Third Maximum Number

15. Find All Numbers Disappeared in an Array


Explanation and solution of  above questions






Question wise Solutions


26:20 Max Consecutive Ones
33:30 Numbers with Even Number of Digits
41:52 Squares of a Sorted Array
53:00 Duplicate Zeros
1:00:44 Merge Sorted Array
1:17:49 Remove Element
1:21:27 Remove Duplicates from Sorted Array
1:29:30 Check If N and Its Double Exist
1:40:06 Valid Mountain Array
1:50:35 Replace Elements with Greatest Element on Right Side
1:58:49 Move Zeroes
2:06:05 Sort Array By Parity
2:16:14 Height Checker
2:25:26 Third Maximum Number
2:40:12 Find All Numbers Disappeared in an Array


No comments:

For Query and doubts!

Powered by Blogger.