上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 87 下一页
摘要: https://pintia.cn/problem-sets/994805260223102976/problems/994805272021680128 拍集体照时队形很重要,这里对给定的 N 个人 K 排的队形设计排队规则如下: 每排人数为 N/K(向下取整),多出来的人全部站在最后一排; 后排 阅读全文
posted @ 2018-12-04 10:21 _Zlrrr 阅读(257) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/combination-sum/ Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find a 阅读全文
posted @ 2018-12-03 22:11 _Zlrrr 阅读(138) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/middle-of-the-linked-list/ Given a non-empty, singly linked list with head node head, return a middle node of linked lis 阅读全文
posted @ 2018-12-03 15:05 _Zlrrr 阅读(151) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/delete-node-in-a-linked-list/ Write a function to delete a node (except the tail) in a singly linked list, given only ac 阅读全文
posted @ 2018-12-03 14:39 _Zlrrr 阅读(121) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/palindrome-linked-list/ Given a singly linked list, determine if it is a palindrome. Example 1: Example 2: 代码: 妈耶 自己写对的第 阅读全文
posted @ 2018-12-03 14:22 _Zlrrr 阅读(141) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/max-points-on-a-line/ Given n points on a 2D plane, find the maximum number of points that lie on the same straight line 阅读全文
posted @ 2018-12-03 13:05 _Zlrrr 阅读(156) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/maximum-product-subarray/ Given an integer array nums, find the contiguous subarray within an array (containing at least 阅读全文
posted @ 2018-12-02 21:59 _Zlrrr 阅读(123) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/summary-ranges/ Given a sorted integer array without duplicates, return the summary of its ranges. Example 1: Example 2: 阅读全文
posted @ 2018-12-02 18:29 _Zlrrr 阅读(158) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/basic-calculator-ii/ Implement a basic calculator to evaluate a simple expression string. The expression string contains 阅读全文
posted @ 2018-12-02 17:55 _Zlrrr 阅读(130) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805260223102976/problems/1038429385296453632 以下文字摘自《灵机一动·好玩的数学》:“狼人杀”游戏分为狼人、好人两大阵营。在一局“狼人杀”游戏中,1 号玩家说:“2 号是狼人”,2 号玩家 阅读全文
posted @ 2018-12-02 11:33 _Zlrrr 阅读(930) 评论(0) 推荐(0)
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 87 下一页