上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 76 下一页
摘要: We have a list of points on the plane. Find the K closest points to the origin (0, 0). (Here, the distance between two points on a plane is the Euclid 阅读全文
posted @ 2020-05-31 06:32 Schwifty 阅读(151) 评论(0) 推荐(0)
摘要: Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1. Example 1: Input: [0,1] Output: 2 Explanation: [0 阅读全文
posted @ 2020-05-27 07:20 Schwifty 阅读(142) 评论(0) 推荐(0)
摘要: We write the integers of A and B (in the order they are given) on two separate horizontal lines. Now, we may draw connecting lines: a straight line co 阅读全文
posted @ 2020-05-26 06:51 Schwifty 阅读(274) 评论(0) 推荐(0)
摘要: Return the root node of a binary search tree that matches the given preorder traversal. (Recall that a binary search tree is a binary tree where for e 阅读全文
posted @ 2020-05-25 06:27 Schwifty 阅读(154) 评论(0) 推荐(0)
摘要: Given two lists of closed intervals, each list of intervals is pairwise disjoint and in sorted order. Return the intersection of these two interval li 阅读全文
posted @ 2020-05-24 01:07 Schwifty 阅读(173) 评论(0) 推荐(0)
摘要: Given a string, sort it in decreasing order based on the frequency of characters. Example 1: Input: "tree" Output: "eert" Explanation: 'e' appears twi 阅读全文
posted @ 2020-05-22 23:05 Schwifty 阅读(122) 评论(0) 推荐(0)
摘要: A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the 阅读全文
posted @ 2020-05-21 08:59 Schwifty 阅读(141) 评论(0) 推荐(0)
摘要: Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexi 阅读全文
posted @ 2020-05-21 08:36 Schwifty 阅读(181) 评论(0) 推荐(0)
摘要: Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. This 阅读全文
posted @ 2020-05-21 08:15 Schwifty 阅读(121) 评论(0) 推荐(0)
摘要: Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, two’s complement method is used. Note: All letters in hexadec 阅读全文
posted @ 2020-05-20 07:51 Schwifty 阅读(162) 评论(0) 推荐(0)
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 76 下一页