11 2018 档案
摘要:题目如下: All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes usef
        阅读全文
            
摘要:题目如下: On an NxN chessboard, a knight starts at the r-th row and c-th column and attempts to make exactly K moves. The rows and columns are 0 indexed, 
        阅读全文
            
摘要:题目如下: There is an m by n grid with a ball. Given the start coordinate (i,j) of the ball, you can move the ball to adjacent cell or cross the grid boun
        阅读全文
            
摘要:题目如下: On a 2D plane, we place stones at some integer coordinate points. Each coordinate point may have at most one stone. Now, a move consists of remo
        阅读全文
            
摘要:题目如下: You have an initial power P, an initial score of 0 points, and a bag of tokens. Each token can be used at most once, has a value token[i], and h
        阅读全文
            
摘要:题目如下: Given two sequences pushed and popped with distinct values, return true if and only if this could have been the result of a sequence of push and
        阅读全文
            
摘要:题目如下: Given an array of integers A, a move consists of choosing any A[i], and incrementing it by 1. Return the least number of moves to make every val
        阅读全文
            
摘要:题目如下: Given a binary tree, write a function to get the maximum width of the given tree. The width of a tree is the maximum width among all levels. The
        阅读全文
            
摘要:题目如下: 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 a string S that only contains "I" (increase) or "D" (decrease), let N = S.length. Return any permutation A of [0, 1, ..., N] such that for
        阅读全文
            
摘要:题目如下: Given an array A of integers, return true if and only if it is a valid mountain array. Recall that A is a mountain array if and only if: A.lengt
        阅读全文
            
摘要:题目如下: You have an array of logs. Each log is a space delimited string of words. For each log, the first word in each log is an alphanumeric identifier
        阅读全文
            
摘要:题目如下: In a given 2D binary array A, there are two islands. (An island is a 4-directionally connected group of 1s not connected to any other 1s.) Now, 
        阅读全文
            
摘要:题目如下: A chess knight can move as indicated in the chess diagram below: . This time, we place our chess knight on any numbered key of a phone pad (indi
        阅读全文
            
 
                    
                     
                    
                 
                    
                 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号