-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharray_manipulation.py
35 lines (24 loc) · 1.01 KB
/
array_manipulation.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# algorithms/manipulation.py
class ArrayManipulation:
def reverse_array(self, arr):
pass # Implement Reverse Array
def rotate_array(self, arr, k):
pass # Implement Rotate Array
def find_maximum(self, arr):
pass # Implement Find Maximum Element
def find_minimum(self, arr):
pass # Implement Find Minimum Element
def merge_sorted_arrays(self, arr1, arr2):
pass # Implement Merge Two Sorted Arrays
def remove_duplicates(self, arr):
pass # Implement Remove Duplicates from Array
def union_arrays(self, arr1, arr2):
pass # Implement Union of Two Arrays
def intersection_arrays(self, arr1, arr2):
pass # Implement Intersection of Two Arrays
def sliding_window_maximum(self, arr, k):
pass # Implement Sliding Window Maximum
def subarray_with_given_sum(self, arr, target):
pass # Implement Subarray with Given Sum
def kth_largest_element(self, arr, k):
pass # Implement Kth Largest Element