你好,我是王争。首先祝你新年快乐! 专栏的正文部分已经结束,相信这半年的时间,你学到了很多,究竟学习成果怎样呢? 我整理了数据结构和算法中必知必会的30个代码实现,从今天开始,分7天发布出来,供你复习巩固所用。你可以每天花一点时间,来完成测验。测验完成后,你可以根据结果,回到相应章节,有针对性地进行复习。 除此之外,@Smallfly 同学还整理了一份配套的LeetCode练习题,你也可以一起练习一下。在此,我谨代表我本人对@Smallfly 表示感谢! 另外,我还为假期坚持学习的同学准备了丰厚的春节加油礼包。
  • 2月5日-2月14日,只要在专栏文章下的留言区写下你的答案,参与答题,并且留言被精选,即可获得极客时间10元无门槛优惠券。
  • 7篇中的所有题目,只要回答正确3道及以上,即可获得极客时间99元专栏通用阅码。
  • 如果7天连续参与答题,并且每天的留言均被精选,还可额外获得极客时间价值365元的每日一课年度会员。
  • ## 关于数组和链表的几个必知必会的代码实现 ### 数组
  • 实现一个支持动态扩容的数组
  • 实现一个大小固定的有序数组,支持动态增删改操作
  • 实现两个有序数组合并为一个有序数组
  • ### 链表
  • 实现单链表、循环链表、双向链表,支持增删操作
  • 实现单链表反转
  • 实现两个有序的链表合并为一个有序链表
  • 实现求链表的中间结点
  • ## 对应的LeetCode练习题(@Smallfly 整理) ### 数组 - Three Sum(求三数之和) 英文版:[https://leetcode.com/problems/3sum/](https://leetcode.com/problems/3sum/) 中文版:[https://leetcode-cn.com/problems/3sum/](https://leetcode-cn.com/problems/3sum/) - Majority Element(求众数) 英文版:[https://leetcode.com/problems/majority-element/](https://leetcode.com/problems/majority-element/) 中文版:[https://leetcode-cn.com/problems/majority-element/](https://leetcode-cn.com/problems/majority-element/) - Missing Positive(求缺失的第一个正数) 英文版:[https://leetcode.com/problems/first-missing-positive/](https://leetcode.com/problems/first-missing-positive/) 中文版:[https://leetcode-cn.com/problems/first-missing-positive/](https://leetcode-cn.com/problems/first-missing-positive/) ### 链表 - Linked List Cycle I(环形链表) 英文版:[https://leetcode.com/problems/linked-list-cycle/](https://leetcode.com/problems/linked-list-cycle/) 中文版:[https://leetcode-cn.com/problems/linked-list-cycle/](https://leetcode-cn.com/problems/linked-list-cycle/) - Merge k Sorted Lists(合并k个排序链表) 英文版:[https://leetcode.com/problems/merge-k-sorted-lists/](https://leetcode.com/problems/merge-k-sorted-lists/) 中文版:[https://leetcode-cn.com/problems/merge-k-sorted-lists/](https://leetcode-cn.com/problems/merge-k-sorted-lists/) 做完题目之后,你可以点击“请朋友读”,把测试题分享给你的朋友,说不定就帮他解决了一个难题。 祝你取得好成绩!明天见!