14 merge sort
Last updated
Was this helpful?
Last updated
Was this helpful?
divide and conquer,除了最基本的排序以外,还能有其他的考法。
L64 Merge Sorted Array ()
(L104)
(L165)
Other related:
L249 Count of Smaller Number before itself (can use segment tree, Binary Index Tree (Fenwick tree), BST做)
315 Count of Smaller Numbers After Self(can use segment tree, Binary Index Tree (Fenwick tree), BST做)
(493)