上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
摘要: Given two integers dividend and divisor, divide two integers without using multiplication, division, and mod operator. Return the quotient after divid 阅读全文
posted @ 2020-12-11 21:02 diameter 阅读(94) 评论(0) 推荐(0) 编辑
摘要: Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Clarification: What shoul 阅读全文
posted @ 2020-12-11 15:47 diameter 阅读(75) 评论(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 ar 阅读全文
posted @ 2020-12-10 18:27 diameter 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Given a sorted array nums, remove the duplicates in-place such that each element appears only once and returns the new length. Do not allocate extra s 阅读全文
posted @ 2020-12-09 22:16 diameter 阅读(53) 评论(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 @ 2020-12-09 19:19 diameter 阅读(76) 评论(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 ch 阅读全文
posted @ 2020-12-07 18:40 diameter 阅读(95) 评论(0) 推荐(0) 编辑
摘要: You are given an array of k linked-lists lists, each linked-list is sorted in ascending order. Merge all the linked-lists into one sorted linked-list 阅读全文
posted @ 2020-12-07 17:58 diameter 阅读(94) 评论(0) 推荐(0) 编辑
摘要: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. Input: n = 3Output: ["((()))","(()())","(())() 阅读全文
posted @ 2020-12-06 11:54 diameter 阅读(96) 评论(0) 推荐(0) 编辑
摘要: Merge two sorted linked lists and return it as a new sorted list. The new list should be made by splicing together the nodes of the first two lists. I 阅读全文
posted @ 2020-12-04 14:51 diameter 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: 阅读全文
posted @ 2020-12-04 11:01 diameter 阅读(113) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页