上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 68 下一页
摘要: 题目如下: Given a binary tree, flatten it to a linked list in-place. For example, given the following tree: The flattened tree should look like: 解题思路:递归,从 阅读全文
posted @ 2019-08-22 17:30 seyjs 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negativeintegers, +, -, *, / operat 阅读全文
posted @ 2019-08-22 16:18 seyjs 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given an array which consists of non-negative integers and an integer m, you can split the array into m non-empty continuous subarrays. Write an 阅读全文
posted @ 2019-08-22 14:40 seyjs 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 题目如下: We are given hours, a list of the number of hours worked per day for a given employee. A day is considered to be a tiring day if and only if the 阅读全文
posted @ 2019-08-20 21:43 seyjs 阅读(635) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given an array nums of integers, a move consists of choosing any element and decreasing it by 1. An array A is a zigzag array if either: Every e 阅读全文
posted @ 2019-08-20 15:57 seyjs 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Write a query identifying the type of each record in the TRIANGLES table using its three side lengths. Output one of the following statements fo 阅读全文
posted @ 2019-08-20 13:47 seyjs 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Consider and to be two points on a 2D plane. happens to equal the minimum value in Northern Latitude (LAT_N in STATION). happens to equal the mi 阅读全文
posted @ 2019-08-20 10:30 seyjs 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 题目如下: You are given three tables: Students, Friends and Packages. Students contains two columns: ID and Name. Friends contains two columns: ID and Fri 阅读全文
posted @ 2019-08-20 10:22 seyjs 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 题目如下: You have d dice, and each die has f faces numbered 1, 2, ..., f. Return the number of possible ways (out of fd total ways) modulo 10^9 + 7 to ro 阅读全文
posted @ 2019-08-19 13:59 seyjs 阅读(926) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given a string text, we are allowed to swap two of the characters in the string. Find the length of the longest substring with repeated characte 阅读全文
posted @ 2019-08-19 13:54 seyjs 阅读(676) 评论(0) 推荐(0) 编辑
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 68 下一页