AniketTheProgrammer
Home
(current)
Courses
Projects
YT Projects
Coding Questions
Notification
Contact Us
Log In
All Topics
C Language
C++ Language
Greedy Algorithm
Hashing
Java Language
Linked List
Python
Queue
Stack
String
Sorting
Searching
Recursion
Backtracking
Dynamic Programming
Graph Theory
Bit Manipulation
Mathematics
Sliding Window Technique
Divide And Conquer
Matrix Manipulation
Two Pointers
Binary Tree
Topic: Array-question / Level: Beginner
1. Write a program to find the maximum element in an array.
2. Write a program to find the minimum element in an array.
3. Write a program to calculate the sum of all elements in an array.
4. Write a program to find the average of elements in an array.
5. Write a program to reverse an array.
6. Write a program to copy the elements of one array to another.
7. Write a program to count positive and negative numbers in an array.
8. Write a program to count even and odd numbers in an array.
9. Write a program to find the second largest element in an array.
10. Write a program to find the second smallest element in an array.
11. Write a program to check if an array is sorted in ascending order.
12. Write a program to check if an array contains a specific element.
13. Write a program to find the frequency of each element in an array.
14. Write a program to remove duplicate elements from an array.
15. Write a program to merge two arrays into one.
16. Write a program to rotate an array to the left by one position.
17. Write a program to rotate an array to the right by one position.
18. Write a program to find the index of a specific element in an array.
19. Write a program to sort an array in ascending order.
20. Write a program to sort an array in descending order.
21. Write a program to shift all zeros to the end of an array.
22. Write a program to find the intersection of two arrays.
23. Write a program to find the union of two arrays.
24. Write a program to find the common elements in two arrays.
25. Write a program to find the maximum difference between any two elements in an array.
26. Write a program to find the smallest difference between any two elements in an array.
27. Write a program to create an array of squares of given numbers.
28. Write a program to find the longest sequence of consecutive numbers in an array.
29. Write a program to find the largest sum of a contiguous subarray.
30. Write a program to check if two arrays are equal.
Previous
1
2
3
4
5
6
7
Next
More Levels
Intermediate
Advanced
Most Visited
Write a program to find the maximum element in an array.
Write a program to find the minimum element in an array.
Write a program to find the mode of an array.
Write a program to find the maximum sum of a row in a 2D array.
Write a program to find the mode of an array of numbers.
Write a program to find the longest consecutive sequence in an unsorted array.
Write a program to find all elements that appear more than n/3 times in an array.
Write a program to find the number of ways to reach the nth step with 1, 2, or 3 steps.
Write a program to calculate the sum of all elements in an array.
Write a program to find the number of paths from the top-left to the bottom-right of a grid.
Write a program to create an array from a string input.
Write a program to find the number of uppercase letters in each string of an array.
Write a program to calculate the cumulative sum of an array.
Write a program to implement a dynamic array that resizes automatically.
Write a program to rotate an array to the right by k positions.