import numpy as np


class Solution:

    def getLeastNumbers(self, arr, k: int):
        return np.sort(arr)[:k]


a = Solution()
print(a.getLeastNumbers([1, 2, 3], 2))

57c18d967c46cf639b0867ead684b65acacccfc7
<mask token>


class Solution:

    def getLeastNumbers(self, arr, k: int):
        return np.sort(arr)[:k]


<mask token>

<mask token>


class Solution:

    def getLeastNumbers(self, arr, k: int):
        return np.sort(arr)[:k]


<mask token>
print(a.getLeastNumbers([1, 2, 3], 2))

<mask token>


class Solution:

    def getLeastNumbers(self, arr, k: int):
        return np.sort(arr)[:k]


a = Solution()
print(a.getLeastNumbers([1, 2, 3], 2))

import numpy as np


class Solution:

    def getLeastNumbers(self, arr, k: int):
        return np.sort(arr)[:k]


a = Solution()
print(a.getLeastNumbers([1, 2, 3], 2))
