is it just a difference swap function in these types as the concept for solving has not a mere difference?
Difference between insertion and selection sorting
Hey @aditi2512201012019
The main difference between insertion sort and selection sort is that insertion sort performs sorting by exchanging an element at a time with the partially sorted array while selection sort performs sorting by selecting the smallest element from the remaining elements and exchanging it with the element in the correct location.
@aditi2512201012019
For better analysis, you can take an unsorted array and try and dry run both insertion sort and selection sort for the array, and analyze the difference between both through that example.