- 博客(2)
- 收藏
- 关注
原创 手撕代码2
LeetCode1. Move ZeroesGiven an array nums, write a function to move all 0’s to the end of it while maintaining the relative order of the non-zero elements. For example, given nums = [0, 1, 0,...
2018-08-23 15:23:07
193
原创 手撕代码1
一、排序1.快速排序int partition(vector<int>&arr, int low, int high){ int pivot = arr[low]; while(low < high){ while(low < high && arr[high] >= pivot) --h...
2018-08-23 15:22:46
282
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人