5.DSA-Lecture-Week 12 Remaining Sorting
5.DSA-Lecture-Week 12 Remaining Sorting
Dr. M. Sohail
Week 12 (Feb 10…14)
Objectives
• Today’s lecture objectives include:
– Sorting
• Merge Sort
• Quick Sort
int main() {
int arr[] = {10, 25, 30, 45, 50, 60};
int size = sizeof(arr) / sizeof(arr[0]);
int target;
if (result != -1)
cout << "Element found at index: " << result << endl;
else
cout << "Element not found in the array." << endl;
return 0; }
https://runestone.academy/ns/books/published/pythonds/index.html