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 阅读(111) 评论(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) 编辑

导航