摘要:题目如下: 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 阅读 (9) 评论 (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 阅读 (7) 评论 (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 阅读 (12) 评论 (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 阅读 (9) 评论 (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 阅读 (7) 评论 (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 阅读 (10) 评论 (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 阅读 (9) 评论 (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 阅读 (11) 评论 (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 阅读 (21) 评论 (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 阅读 (8) 评论 (0) 编辑