Array - 7: Selection Sort on array elements

preview_player
Показать описание
Solution:
- Our aim is to find minimum element at each position
- We solve this using two loops
- We start from 0th index & compare value of this to next values
- Now if there's any change then we swap the value, else we don't

Time Complexity: O(n * n)
Space Complexity: O(1)

Do Watch video for more info

CHECK OUT CODING SIMPLIFIED

★☆★ VIEW THE BLOG POST: ★☆★

I started my YouTube channel, Coding Simplified, during Dec of 2015.
Since then, I've published over 400+ videos.

★☆★ SUBSCRIBE TO ME ON YOUTUBE: ★☆★

★☆★ Send us mail at: ★☆★
Рекомендации по теме
Комментарии
Автор

Just a suggestion, Please make more videos on concepts like dp, heap and tough array questions which are asked in coding interviews. you can also create a poll of questions where you can ask people for next questions which help.you in prioritising

rahulsinghai
join shbcf.ru