Skip to editor
File
New File Ctrl+N
New Folder

Save Ctrl+S
Upload File…
Download as ZIP

Delete File

Reset Files…
View
Toggle Sidebar Ctrl+B
Toggle Terminal Ctrl+`

Word Wrap Alt+Z

Exercise Info
Run
Run Code Ctrl+Enter
Save & Run F5

Clear Output
CS174: Merge Sort Exercise (2 pts)
Explorer
GitHub

Connect to GitHub to push and pull your project files to a repository.

On the page that opens, create a token with repo scope, copy it, then paste it below.

Paste the personal access token you created on GitHub with repo scope.

Click Refresh to load commit history
Exercise Info

Goals

  1. Work with pointers and array indices in C++
  2. Implement recursive methods
  3. Implement merge sort

Instructions

Fill in the merge method to merge two sorted arrays into one larger sorted array, which is the key step to combine recursive problems in merge sort. Click here to watch a video I made on merge sort if you'd like some help with this step. You can also watch a cute video here on a dance for merge sort.

The Ursinus-WebIDE by Chris Tralie (opens in new tab) and Bill Mongan (opens in new tab)

Your browser does not support WebGL. A graphical rendering canvas would appear here.


          
No suggestions. Code quality feedback will appear here.
Not logged in cpp
Ln 1, Col 1