摘要: Divide two integers without using multiplication, division and mod operator. If it is overflow, return MAX_INT. 两个数相除,不使用乘法,除法,求模计算两个数的除法~ 除法运算:被除数中包含 阅读全文
posted @ 2017-11-14 23:07 hozhangel 阅读(148) 评论(0) 推荐(0)
摘要: 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: 这里没 阅读全文
posted @ 2017-11-14 22:37 hozhangel 阅读(134) 评论(0) 推荐(0)
摘要: Given an array and a value, remove all instances of that value in-place and return the new length. Do not allocate extra space for another array, you 阅读全文
posted @ 2017-11-14 22:31 hozhangel 阅读(101) 评论(0) 推荐(0)
摘要: Given a sorted array, remove the duplicates in-place such that each element appear only once and return the new length. Do not allocate extra space fo 阅读全文
posted @ 2017-11-14 22:26 hozhangel 阅读(112) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2017-11-14 15:19 hozhangel 阅读(153) 评论(0) 推荐(0)