摘要: Github地址 https://github.com/Jessey0925/LeetCode LeetCode Array(数组) | ID | Title | Difficulty | C++ | Python | Blog | | : : | : : | : : | : : | : : | : 阅读全文
posted @ 2019-05-29 15:04 风雪初晴,宜下江南 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 题目 Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator. Return the quotient after div 阅读全文
posted @ 2019-06-18 09:39 风雪初晴,宜下江南 阅读(249) 评论(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: & 8195; Inpu 阅读全文
posted @ 2019-06-18 09:35 风雪初晴,宜下江南 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 题目 Given an array nums and a value val, remove all instances of that value in place and return the new length. Do not allocate extra space for another 阅读全文
posted @ 2019-06-18 09:34 风雪初晴,宜下江南 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 题目 Given a sorted array nums, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra 阅读全文
posted @ 2019-06-09 15:00 风雪初晴,宜下江南 阅读(96) 评论(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 阅读全文
posted @ 2019-06-09 14:59 风雪初晴,宜下江南 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 题目 Given a linked list, swap every two adjacent nodes and return its head. You may not modify the values in the list's nodes, only nodes itself may be 阅读全文
posted @ 2019-06-09 14:57 风雪初晴,宜下江南 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 题目 Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Example: & 8195;Input: & 8195;[ & 8195;& 8195;1 阅读全文
posted @ 2019-06-09 14:56 风雪初晴,宜下江南 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 题目 Given n pairs of parentheses, write a function to generate all combinations of well formed parentheses. For example, given n=3 , a solution set is: 阅读全文
posted @ 2019-06-09 14:53 风雪初晴,宜下江南 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 题目 Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Examp 阅读全文
posted @ 2019-06-09 14:52 风雪初晴,宜下江南 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 题目 Given a string containing just the characters '(',')','[',']','{' and ‘}’,determine if the input string is valid. An input string is valid if: 1.Op 阅读全文
posted @ 2019-06-09 14:51 风雪初晴,宜下江南 阅读(180) 评论(0) 推荐(0) 编辑