上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 43 下一页

2019年5月5日

32. Longest Valid Parentheses (JAVA)

摘要: Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. Example 1: Exampl 阅读全文

posted @ 2019-05-05 10:57 joannae 阅读(130) 评论(0) 推荐(0) 编辑

2019年4月30日

31. Next Permutation (JAVA)

摘要: Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not possib 阅读全文

posted @ 2019-04-30 20:40 joannae 阅读(180) 评论(0) 推荐(0) 编辑

30. Substring with Concatenation of All Words (JAVA)

摘要: You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a conca 阅读全文

posted @ 2019-04-30 17:38 joannae 阅读(108) 评论(0) 推荐(0) 编辑

2019年4月28日

29. Divide Two Integers (JAVA)

摘要: Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator. Return the quotient after dividi 阅读全文

posted @ 2019-04-28 11:31 joannae 阅读(215) 评论(0) 推荐(0) 编辑

2019年4月27日

23. Merge k Sorted Lists (JAVA)

摘要: Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Example: Input: [ 1->4->5, 1->3->4, 2->6 ] Output: 阅读全文

posted @ 2019-04-27 11:28 joannae 阅读(110) 评论(0) 推荐(0) 编辑

2019年4月26日

25. Reverse Nodes in k-Group (JAVA)

摘要: 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 @ 2019-04-26 18:29 joannae 阅读(110) 评论(0) 推荐(0) 编辑

20. Valid Parentheses (JAVA)

摘要: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: No 阅读全文

posted @ 2019-04-26 17:01 joannae 阅读(144) 评论(0) 推荐(0) 编辑

19. Remove Nth Node From End of List (JAVA)

摘要: Given a linked list, remove the n-th node from the end of list and return its head. Example: Given linked list: 1->2->3->4->5, and n = 2. After removi 阅读全文

posted @ 2019-04-26 16:36 joannae 阅读(96) 评论(0) 推荐(0) 编辑

18. 4Sum (JAVA)

摘要: Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c+ d = target? Find all unique qu 阅读全文

posted @ 2019-04-26 16:07 joannae 阅读(184) 评论(0) 推荐(0) 编辑

2019年4月25日

16. 3Sum Closest (JAVA)

摘要: Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the thr 阅读全文

posted @ 2019-04-25 22:51 joannae 阅读(107) 评论(0) 推荐(0) 编辑

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 43 下一页

导航