Logic : Find the smallest number and swap it first position.
- Time complexity O(n^2)
- Space complexity O(1)
Logic: Compare first and second number and swap it.
- Time complexity O(n^2)
- Space complexity O(1)
logic: set a number with it's suitable position
- Time complexity O(n^2)
- Space complexity O(1)