diff --git a/build.py b/build.py index e58ff13..2a6665d 100644 --- a/build.py +++ b/build.py @@ -1,7 +1,15 @@ -import numpy as np +""" +Write a Python program to get the unique elements of an array using Numpy. +Sample Output: +Scenario 1: +Original array: [10 10 20 20 30 30] +Unique elements of the above array: [10 20 30] +Scenario 2: +Original array: [[1 1] [2 3]] +Unique elements of the above array: [1 2 3] +""" +import numpy as np def solution(array): - """ - Enter your code here - """ \ No newline at end of file + return np.unique(array) diff --git a/build.pyc b/build.pyc new file mode 100644 index 0000000..9e690ef Binary files /dev/null and b/build.pyc differ diff --git a/tests/__init__.pyc b/tests/__init__.pyc new file mode 100644 index 0000000..e3c2c95 Binary files /dev/null and b/tests/__init__.pyc differ diff --git a/tests/test_solution.pyc b/tests/test_solution.pyc new file mode 100644 index 0000000..327ef58 Binary files /dev/null and b/tests/test_solution.pyc differ