12 2019 档案

摘要:题目如下: Given a binary tree, return the sum of values of its deepest leaves. Example 1: Constraints: The number of nodes in the tree is between 1 and 10 阅读全文
posted @ 2019-12-29 08:58 seyjs 阅读(548) 评论(0) 推荐(0)
摘要:题目如下: You are given a square board of characters. You can move on the board starting at the bottom right square marked with the character 'S'. You nee 阅读全文
posted @ 2019-12-29 08:56 seyjs 阅读(340) 评论(0) 推荐(0)
摘要:题目如下: Given an integer array arr and a target value target, return the integer value such that when we change all the integers larger than value in th 阅读全文
posted @ 2019-12-29 08:50 seyjs 阅读(600) 评论(0) 推荐(0)
摘要:题目如下: Given an array arr, replace every element in that array with the greatest element among the elements to its right, and replace the last element 阅读全文
posted @ 2019-12-29 08:45 seyjs 阅读(461) 评论(0) 推荐(0)
摘要:题目如下: Given an array of integers nums and a positive integer k, find whether it's possible to divide this array into sets of k consecutive numbersRetu 阅读全文
posted @ 2019-12-23 10:48 seyjs 阅读(495) 评论(0) 推荐(0)
摘要:题目如下: Given an array nums of integers, return how many of them contain an even number of digits. Example 1: Example 2: Constraints: 1 <= nums.length < 阅读全文
posted @ 2019-12-23 10:45 seyjs 阅读(682) 评论(0) 推荐(0)
摘要:题目如下: We want to use quad trees to store an N x N boolean grid. Each cell in the grid can only be true or false. The root node represents the whole gr 阅读全文
posted @ 2019-12-23 10:41 seyjs 阅读(265) 评论(0) 推荐(0)
摘要:题目如下: Given a rectangle of size n x m, find the minimum number of integer-sided squares that tile the rectangle. Example 1: Example 2: Example 3: Cons 阅读全文
posted @ 2019-12-23 10:38 seyjs 阅读(622) 评论(0) 推荐(0)
摘要:题目如下: Given a m x n matrix mat and an integer threshold. Return the maximum side-length of a square with a sum less than or equal to threshold or retu 阅读全文
posted @ 2019-12-23 10:33 seyjs 阅读(479) 评论(0) 推荐(0)
摘要:题目如下: An integer has sequential digits if and only if each digit in the number is one more than the previous digit. Return a sorted list of all the in 阅读全文
posted @ 2019-12-23 10:09 seyjs 阅读(659) 评论(0) 推荐(0)
摘要:题目如下: Given head which is a reference node to a singly-linked list. The value of each node in the linked list is either 0 or 1. The linked list holds 阅读全文
posted @ 2019-12-23 09:54 seyjs 阅读(511) 评论(0) 推荐(0)
摘要:题目如下: You have a pointer at index 0 in an array of size arrLen. At each step, you can move 1 position to the left, 1 position to the right in the arra 阅读全文
posted @ 2019-12-15 09:17 seyjs 阅读(440) 评论(0) 推荐(0)
摘要:题目如下: Given a square grid of integers arr, a falling path with non-zero shifts is a choice of exactly one element from each row of arr, such that no t 阅读全文
posted @ 2019-12-15 09:10 seyjs 阅读(582) 评论(0) 推荐(0)
摘要:题目如下: Given a list of intervals, remove all intervals that are covered by another interval in the list. Interval [a,b) is covered by interval [c,d) if 阅读全文
posted @ 2019-12-15 08:58 seyjs 阅读(577) 评论(0) 推荐(0)
摘要:题目如下: Given an integer array sorted in non-decreasing order, there is exactly one integer in the array that occurs more than 25% of the time. Return t 阅读全文
posted @ 2019-12-15 08:55 seyjs 阅读(364) 评论(0) 推荐(0)
摘要:题目如下: Design an Iterator class, which has: A constructor that takes a string characters of sorted distinct lowercase English letters and a number comb 阅读全文
posted @ 2019-12-15 08:53 seyjs 阅读(603) 评论(0) 推荐(0)
摘要:题目如下: Given a m x n binary matrix mat. In one step, you can choose one cell and flip it and all the four neighbours of it if they exist (Flip is chang 阅读全文
posted @ 2019-12-11 22:37 seyjs 阅读(471) 评论(0) 推荐(0)
摘要:题目如下: Given an array of integers nums and an integer threshold, we will choose a positive integer divisor and divide all the array by it and sum the r 阅读全文
posted @ 2019-12-11 22:35 seyjs 阅读(524) 评论(0) 推荐(0)
摘要:题目如下: There are n people whose IDs go from 0 to n - 1 and each person belongs exactly to one group. Given the array groupSizes of length n telling the 阅读全文
posted @ 2019-12-11 22:28 seyjs 阅读(464) 评论(0) 推荐(0)
摘要:题目如下: Given an integer number n, return the difference between the product of its digits and the sum of its digits. Example 1: Input: n = 234 Output: 阅读全文
posted @ 2019-12-11 22:26 seyjs 阅读(451) 评论(0) 推荐(0)
摘要:题目如下: Given two integers tomatoSlices and cheeseSlices. The ingredients of different burgers are as follows: Jumbo Burger: 4 tomato slices and 1 chees 阅读全文
posted @ 2019-12-08 06:37 seyjs 阅读(426) 评论(0) 推荐(0)
摘要:题目如下: Tic-tac-toe is played by two players A and B on a 3 x 3 grid. Here are the rules of Tic-Tac-Toe: Players take turns placing characters into empt 阅读全文
posted @ 2019-12-08 06:36 seyjs 阅读(513) 评论(0) 推荐(0)
摘要:题目如下: You are given a string s containing lowercase letters and an integer k. You need to : First, change some characters of s to other lowercase Engl 阅读全文
posted @ 2019-12-07 08:27 seyjs 阅读(468) 评论(0) 推荐(0)
摘要:最近遇到这么一个场景,需要用SQL从表里取出版本号小于'10.2'的所有数据。目前表中以存在的数据中,版本号有两种格式,一个是'X.Y',另一个是'X'。对于SQL Server来说,其没有string split函数,所以处理起来会麻烦一点。 首先,我想到是用parsename函数,分别用'X.Y 阅读全文
posted @ 2019-12-06 16:26 seyjs 阅读(1532) 评论(0) 推荐(0)
摘要:题目如下: A tree rooted at node 0 is given as follows: The number of nodes is nodes; The value of the i-th node is value[i]; The parent of the i-th node i 阅读全文
posted @ 2019-12-03 21:41 seyjs 阅读(630) 评论(0) 推荐(0)
摘要:题目如下: (This problem is an interactive problem.) On the sea represented by a cartesian plane, each ship is located at an integer point, and each intege 阅读全文
posted @ 2019-12-03 19:26 seyjs 阅读(384) 评论(0) 推荐(0)
摘要:题目如下: Given a sorted list of disjoint intervals, each interval intervals[i] = [a, b] represents the set of real numbers x such that a <= x < b. We rem 阅读全文
posted @ 2019-12-03 19:24 seyjs 阅读(504) 评论(0) 推荐(0)
摘要:题目如下: A decimal number can be converted to its Hexspeak representation by first converting it to an uppercase hexadecimal string, then replacing all o 阅读全文
posted @ 2019-12-03 19:05 seyjs 阅读(745) 评论(0) 推荐(0)