03 2020 档案

摘要:题目如下: Given a m x n grid. Each cell of the grid represents a street. The street of grid[i][j] can be: 1 which means a street connecting the left cell 阅读全文
posted @ 2020-03-29 07:23 seyjs 阅读(492) 评论(0) 推荐(0)
摘要:题目如下: Given an integer array nums, return the sum of divisors of the integers in that array that have exactly four divisors. If there is no such integ 阅读全文
posted @ 2020-03-29 07:17 seyjs 阅读(292) 评论(0) 推荐(0)
摘要:题目如下: Given two arrays of integers nums and index. Your task is to create target array under the following rules: Initially target array is empty. Fro 阅读全文
posted @ 2020-03-29 07:16 seyjs 阅读(383) 评论(0) 推荐(0)
摘要:题目如下: The power of an integer x is defined as the number of steps needed to transform x into 1 using the following steps: if x is even then x = x / 2 阅读全文
posted @ 2020-03-29 07:09 seyjs 阅读(633) 评论(0) 推荐(0)
摘要:题目如下: A cinema has n rows of seats, numbered from 1 to n and there are ten seats in each row, labelled from 1 to 10 as shown in the figure above. Give 阅读全文
posted @ 2020-03-29 07:05 seyjs 阅读(414) 评论(0) 推荐(0)
摘要:题目如下: Given two integer arrays arr1 and arr2, and the integer d, return the distance value between the two arrays. The distance value is defined as th 阅读全文
posted @ 2020-03-29 07:01 seyjs 阅读(268) 评论(0) 推荐(0)
摘要:题目如下: There are n engineers numbered from 1 to n and two arrays: speed and efficiency, where speed[i] and efficiency[i] represent the speed and effici 阅读全文
posted @ 2020-03-29 06:59 seyjs 阅读(401) 评论(0) 推荐(0)
摘要:题目如下: Design a stack which supports the following operations. Implement the CustomStack class: CustomStack(int maxSize) Initializes the object with ma 阅读全文
posted @ 2020-03-21 22:09 seyjs 阅读(367) 评论(0) 推荐(0)
摘要:题目如下: Given a m * n matrix of distinct numbers, return all lucky numbers in the matrix in any order. A lucky number is an element of the matrix such t 阅读全文
posted @ 2020-03-21 22:06 seyjs 阅读(385) 评论(0) 推荐(0)
摘要:题目如下: Given an undirected tree consisting of n vertices numbered from 1 to n. A frog starts jumping from the vertex 1. In one second, the frog jumps f 阅读全文
posted @ 2020-03-21 22:02 seyjs 阅读(398) 评论(0) 推荐(0)
摘要:题目如下: A company has n employees with a unique ID for each employee from 0 to n - 1. The head of the company has is the one with headID. Each employee 阅读全文
posted @ 2020-03-11 15:37 seyjs 阅读(278) 评论(0) 推荐(0)
摘要:题目如下: There is a room with n bulbs, numbered from 1 to n, arranged in a row from left to right. Initially, all the bulbs are turned off. At moment k ( 阅读全文
posted @ 2020-03-11 15:33 seyjs 阅读(470) 评论(0) 推荐(0)
摘要:题目如下: Given an integer n, return a string with n characters such that each character in such string occurs an odd number of times. The returned string 阅读全文
posted @ 2020-03-11 15:29 seyjs 阅读(365) 评论(0) 推荐(0)
摘要:题目如下: Given a binary tree root and a linked list with head as the first node. Return True if all the elements in the linked list starting from the hea 阅读全文
posted @ 2020-03-04 21:44 seyjs 阅读(417) 评论(0) 推荐(0)
摘要:题目如下: In a special ranking system, each voter gives a rank from highest to lowest to all teams participated in the competition. The ordering of teams 阅读全文
posted @ 2020-03-04 21:42 seyjs 阅读(341) 评论(0) 推荐(0)
摘要:题目如下: Given the array nums, for each nums[i] find out how many numbers in the array are smaller than it. That is, for each nums[i] you have to count t 阅读全文
posted @ 2020-03-04 21:34 seyjs 阅读(345) 评论(0) 推荐(0)
摘要:题目如下: Given an integer array of digits, return the largest multiple of three that can be formed by concatenating some of the given digits in any order 阅读全文
posted @ 2020-03-01 15:18 seyjs 阅读(430) 评论(0) 推荐(0)
摘要:题目如下: Given an integer num, find the closest two integers in absolute difference whose product equals num + 1 or num + 2. Return the two integers in a 阅读全文
posted @ 2020-03-01 15:04 seyjs 阅读(357) 评论(0) 推荐(0)
摘要:题目如下: You have n binary tree nodes numbered from 0 to n - 1 where node i has two children leftChild[i] and rightChild[i], return true if and only if a 阅读全文
posted @ 2020-03-01 15:02 seyjs 阅读(567) 评论(0) 推荐(0)
摘要:题目如下: Write a program to count the number of days between two dates. The two dates are given as strings, their format is YYYY-MM-DD as shown in the ex 阅读全文
posted @ 2020-03-01 14:59 seyjs 阅读(250) 评论(0) 推荐(0)