12 2018 档案
摘要:题目如下: Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 1. Example 1: Example 2: Exa
        阅读全文
            
摘要:题目如下: Given a wordlist, we want to implement a spellchecker that converts a query word into a correct word. For a given query word, the spell checker 
        阅读全文
            
摘要:题目如下: A binary tree is univalued if every node in the tree has the same value. Return true if and only if the given tree is univalued. Example 1: Exam
        阅读全文
            
摘要:题目如下: Return all non-negative integers of length N such that the absolute difference between every two consecutive digits is K. Note that every number
        阅读全文
            
摘要:题目如下: Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserv
        阅读全文
            
摘要:题目如下: Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and n
        阅读全文
            
摘要:题目如下: Given an array A of integers, a ramp is a tuple (i, j) for which i < j and A[i] <= A[j]. The width of such a ramp is j - i. Find the maximum wid
        阅读全文
            
摘要:题目如下: Given a set of points in the xy-plane, determine the minimum area of any rectangle formed from these points, with sides not necessarily parallel
        阅读全文
            
摘要:题目如下: In a array A of size 2N, there are N+1 unique elements, and exactly one of these elements is repeated N times. Return the element repeated N tim
        阅读全文
            
摘要:题目如下: Given a set of points in the xy-plane, determine the minimum area of a rectangle formed from these points, with sides parallel to the x and y ax
        阅读全文
            
摘要:题目如下: In a N x N grid composed of 1 x 1 squares, each 1 x 1 square consists of a /, \, or blank space. These characters divide the square into contigu
        阅读全文
            
摘要:题目如下: Given a binary tree, determine if it is a complete binary tree. Definition of a complete binary tree from Wikipedia:In a complete binary tree ev
        阅读全文
            
摘要:题目如下: There are 8 prison cells in a row, and each cell is either occupied or vacant. Each day, whether the cell is occupied or vacant changes accordin
        阅读全文
            
摘要:题目如下: Given a list of airline tickets represented by pairs of departure and arrival airports [from, to], reconstruct the itinerary in order. All of th
        阅读全文
            
摘要:题目如下: In an alien language, surprisingly they also use english lowercase letters, but possibly in a different order. The order of the alphabet is some
        阅读全文
            
摘要:题目如下: Given an array of integers A with even length, return true if and only if it is possible to reorder it such that A[2 * i + 1] = 2 * A[2 * i] for
        阅读全文
            
摘要:题目如下: We are given an array A of N lowercase letter strings, all of the same length. Now, we may choose any set of deletion indices, and for each stri
        阅读全文
            
摘要:题目如下: Given two integers n and k, you need to construct a list which contains ndifferent positive integers ranging from 1 to n and obeys the following
        阅读全文
            
摘要:题目如下: For a binary tree T, we can define a flip operation as follows: choose any node, and swap the left and right child subtrees. A binary tree X is 
        阅读全文
            
摘要:题目如下: Given an array of 4 digits, return the largest 24 hour time that can be made. The smallest 24 hour time is 00:00, and the largest is 23:59. Star
        阅读全文
            
摘要:题目如下: In a deck of cards, every card has a unique integer. You can order the deck in any order you want. Initially, all the cards start face down (unr
        阅读全文
            
 
                    
                     
                    
                 
                    
                 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号