Sorting algorithm

sir which sorting algorithm is best to use, bubble sort, selection sort, insertion sort or inbuilt sort. please explain.

hi @ritikbunty2511_729d0258992e0982,
u can use inbuilt sort once u know all of them as its just one line of code and will help u to write code quickly.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

https://ide.codingblocks.com/s/678582, sir sort() function is not working. why?

hi @ritikbunty2511_729d0258992e0982
add
#include <bits/stdc++.h> it will add the required header

sir sort() function is declared in which header actually, as bits/stdc++.h is the collection of all Header files

hi @ritikbunty2511_729d0258992e0982 its in
#include <algorithm >