LeetCode Question · Nov 2019 · New York

Facebook | Phone Screen | Pancake Sorting

1 upvote 1,250 views 4 replies

Question Details

Location: New York Question: Given a method reverse: java /* Reverse the first k elements. Eg. [2,3,1,5,4] and k =3 Output : [2,3,1,5,4] */ void reverse(int[] arr, k); write another method which will sort the array by...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Arrays Sorting