← PayPal questions

Bubble sort then a faster sorting algorithm

Filed under PayPal

Implement Bubble Sort and Merge Sort. Bubble Sort repeatedly swaps adjacent elements if they are in the wrong order. Merge Sort is a divide-and-conquer algorithm that recursively splits the array and…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related PayPal questions

Collected from public candidate posts and coding forums. Updated Nov 2026.