摘要:
一、深度优先搜索 POJ No.2386 Lake Counting Description Due to recent rains, water has pooled in various places in Farmer John's field, which is represented by 阅读全文
摘要:
Divide two integers without using multiplication, division and mod operator. If it is overflow, return MAX_INT. 题解: 思路就是被除数减去除数,减尽为止。优化的方法是尽量少的做减法。由于不 阅读全文
摘要:
Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Example 1: Example 2: 题解: 阅读全文
摘要:
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive integer and is less than or equal to 阅读全文