Approach Explanation <(^-^)>
- I sorted the array in ascending order using sort function.
- I picked the element at position k-1
- That element is the kth smallest.
Methods Used o( ̄▽ ̄)/
- Sorting method
- Direct indexing
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)