Skip to content

Instantly share code, notes, and snippets.

@myavuzokumus
Created March 21, 2023 22:41
Show Gist options
  • Save myavuzokumus/1b2ac20a5cef0dee78da362c607eb8db to your computer and use it in GitHub Desktop.
Save myavuzokumus/1b2ac20a5cef0dee78da362c607eb8db to your computer and use it in GitHub Desktop.
Merge Sort gösterimi
[16,21,11,8,12,22] -> Merge Sort
1. Aşama: [16,21,11] - [8,12,22]
2. Aşama: [16,21] - [11] - [8,12] - [22]
3. Aşama: [16] - [21] - [11] - [8] - [12] - [22]
4. Aşama: [16,21] - [11] - [8,12] - [22]
5. Aşama: [11,16,21] - [8,12,22]
6. Aşama: [8,11,12,16,21,22]
Big-O nlogn'dir.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment