EdocGram
Home
(current)
Topics
EdocAI
Code Editor
HTML
Javascript
PHP
Python
Python AI Code Editor
More
Contact
About
Privacy Policy
Terms and Conditions
Log In
Topic
View
More
Topic
Hashing
Linked List
Queue
Stack
Backtracking
Dynamic Programming
Graph Theory
Bit Manipulation
Mathematics
Sliding Window Technique
Divide And Conquer
Matrix Manipulation
Two Pointers
Tree
Topic: array-problem / Level: beginner
1. Find the sum of all elements in an array.
2. Find the maximum element in an array.
3. Find the minimum element in an array.
4. Reverse an array in place.
5. Count the occurrences of a given element in an array.
6. Check if an array is sorted in ascending order.
7. Check if an array contains a specific element.
8. Find the second largest element in an array.
9. Find the second smallest element in an array.
10. Merge two sorted arrays into a single sorted array.
11. Rotate an array to the left by k positions.
12. Rotate an array to the right by k positions.
13. Find the number of even elements in an array.
14. Find the number of odd elements in an array.
15. Find the average of all elements in an array.
16. Find the largest difference between two elements in an array.
17. Remove duplicates from an array.
18. Find the sum of all positive numbers in an array.
19. Find the sum of all negative numbers in an array.
20. Find the number of negative numbers in an array.
21. Find the product of all non-zero elements in an array.
22. Check if an array is a palindrome (i.e., reads the same forwards and backwards).
23. Find the missing number in an array of consecutive integers.
24. Find the first duplicate element in an array.
25. Separate even and odd numbers in an array.
26. Find the element with the highest frequency in an array.
27. Check if two arrays are equal (contain the same elements in the same order).
28. Sort an array of integers in ascending order using bubble sort.
29. Sort an array of integers in descending order using selection sort.
30. Find the longest subarray with consecutive integers in an array.
31. Find the sum of all prime numbers in an array.
32. Find the sum of the first n elements in an array.
33. Count how many elements in the array are greater than a given number x.
34. Replace all negative numbers in an array with zero.
35. Find the longest increasing subarray in an array.
36. Find the most frequent number in an array.
37. Find the maximum product of two distinct elements in an array.
38. Count how many numbers in an array are divisible by a given number k.
39. Swap the first and last elements of an array.
40. Count how many times a given number appears in an array.
41. Sort an array in ascending order using insertion sort.
42. Sort an array of integers in ascending order using quicksort.
43. Check if all elements in an array are distinct.
44. Find the kth smallest element in an array.
45. Find the kth largest element in an array.
46. Shift all zeros to the end of an array without changing the order of the other elements.
47. Find the smallest element in a 2D array.
48. Find the sum of the diagonal elements in a 2D array.
49. Find the product of the diagonal elements in a 2D array.
50. Find the row in a 2D array with the highest sum of elements.
Previous
1
2
...
20
Next
More Levels
Intermediate
Advanced
Aniket The Programmer
This website is managed by aniket the programmer :)
Website
Instagram