由于go语言中没有class所以struct是编程中最常用的结构,可惜的是,自己对struct的某些知识掌握的并不好,比如结构体的嵌套以及空结构体等等,项目中难免捉襟见肘,这里梳理一下。
Algorithm(7) Two pointers and hash table (Part A)(By solution)
整理一下leetcode里面关于 2sum 3sum 的几个问题,后面还补充了几个two pointer的其他问题,主要是longest sub str with at most K distinct characters的一系列问题。关于 hashtable 以及 two pointer的应用,由于在实现上不像树、图那些在结构上比较复杂,大多是灵光一闪,或者是绕一两个弯就能想到的,面试也是各种常考,应该是要掌握好的一类基本问题。
Algorithm(6) two numbers sum and multiply(By solution)
主要是leetcode中两个数相乘和相加的几个问题,这种类型的题目应该属于必须熟练掌握的,注意其中的一些细节。
Algorithm(5) Two pointers and hash table (Part B)(By solution)
这一篇主要还是围绕 two pointer 相关的题目进行整理。
Algorithm(4) linked list(By input data structure)
这一块主要记录一下链表相关的一些常考题目以及解题思路。
Algorithm(3) stack and queue questions(By input data structure)
队列和栈相关的笔试面试题,栈和队列自然是基础中的基础了,罗列了一些基本的,总之不要着急,在纸上理清楚之后再去实现,实现起来反而是非常快的,有一些地方是不常用到,比如通过栈来比较大小,进行排序等等操作。
Algorithm(2) sorting(By solution)
主要是记录一些sort相关的题目。
funcPointer, callBack and depedencies
Funcpointer and Callback
This article mainly talk about the using of the function pointer and the call back function in c/c++.