上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 76 下一页
摘要: You are given a char array representing tasks CPU need to do. It contains capital letters A to Z where each letter represents a different task. Tasks 阅读全文
posted @ 2020-07-01 07:09 Schwifty 阅读(170) 评论(0) 推荐(0)
摘要: Design your implementation of the circular queue. The circular queue is a linear data structure in which the operations are performed based on FIFO (F 阅读全文
posted @ 2020-07-01 03:31 Schwifty 阅读(131) 评论(0) 推荐(0)
摘要: Given an array of integers arr of even length n and an integer k. We want to divide the array into exactly n / 2 pairs such that the sum of each pair 阅读全文
posted @ 2020-06-30 02:37 Schwifty 阅读(142) 评论(0) 推荐(0)
摘要: Given a string path, where path[i] = 'N', 'S', 'E' or 'W', each representing moving one unit north, south, east, or west, respectively. You start at t 阅读全文
posted @ 2020-06-29 22:55 Schwifty 阅读(280) 评论(0) 推荐(0)
摘要: Given a binary array nums, you should delete one element from it. Return the size of the longest non-empty subarray containing only 1's in the resulti 阅读全文
posted @ 2020-06-29 10:14 Schwifty 阅读(257) 评论(0) 推荐(0)
摘要: Given two positive integers n and k. A factor of an integer n is defined as an integer i where n % i == 0. Consider a list of all factors of n sorted 阅读全文
posted @ 2020-06-29 08:16 Schwifty 阅读(315) 评论(0) 推荐(0)
摘要: Given an array of unique integers salary where salary[i] is the salary of the employee i. Return the average salary of employees excluding the minimum 阅读全文
posted @ 2020-06-29 08:13 Schwifty 阅读(361) 评论(0) 推荐(0)
摘要: Equations are given in the format A / B = k, where A and B are variables represented as strings, and k is a real number (floating point number). Given 阅读全文
posted @ 2020-06-27 08:55 Schwifty 阅读(185) 评论(0) 推荐(0)
摘要: In this problem, a tree is an undirected graph that is connected and has no cycles. The given input is a graph that started as a tree with N nodes (wi 阅读全文
posted @ 2020-06-27 04:28 Schwifty 阅读(118) 评论(0) 推荐(0)
摘要: For an undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible root 阅读全文
posted @ 2020-06-26 08:51 Schwifty 阅读(112) 评论(0) 推荐(0)
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 76 下一页