摘要: 这个题目虽然说只有简单难度,但是实际上这个题目的难度很大。尤其是这种双指针的做法,很少有人能够想到。 我们可以设立一个快指针和一个慢指针,快指针在数组的第二个位置,也就是index=1的时候,慢指针在第一个位置,也就是在index=0的时候。 当快指针和慢指针所指向的元素的大小不相同的时候,慢指针就 阅读全文
posted @ 2021-10-20 22:36 Geeksongs 阅读(25) 评论(0) 推荐(0) 编辑

Coded by Geeksongs on Linux

All rights reserved, no one is allowed to pirate or use the document for other purposes.