上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 76 下一页
摘要: A binary tree is named Even-Odd if it meets the following conditions: The root of the binary tree is at level index 0, its children are at level index 阅读全文
posted @ 2020-10-06 11:57 Schwifty 阅读(164) 评论(0) 推荐(0)
摘要: Design a parking system for a parking lot. The parking lot has three kinds of parking spaces: big, medium, and small, with a fixed number of slots for 阅读全文
posted @ 2020-10-06 04:49 Schwifty 阅读(248) 评论(0) 推荐(0)
摘要: We are given head, the head node of a linked list containing unique integer values. We are also given the list G, a subset of the values in the linked 阅读全文
posted @ 2020-10-02 23:23 Schwifty 阅读(110) 评论(0) 推荐(0)
摘要: You are given a circular array nums of positive and negative integers. If a number k at an index is positive, then move forward k steps. Conversely, i 阅读全文
posted @ 2020-10-02 12:56 Schwifty 阅读(133) 评论(0) 推荐(0)
摘要: You are given a string text of words that are placed among some number of spaces. Each word consists of one or more lowercase English letters and are 阅读全文
posted @ 2020-10-02 10:48 Schwifty 阅读(286) 评论(0) 推荐(0)
摘要: Given an array consisting of n integers, find the contiguous subarray of given length k that has the maximum average value. And you need to output the 阅读全文
posted @ 2020-10-02 06:39 Schwifty 阅读(293) 评论(0) 推荐(0)
摘要: You have a RecentCounter class which counts the number of recent requests within a certain time frame. Implement the RecentCounter class: RecentCounte 阅读全文
posted @ 2020-10-02 06:17 Schwifty 阅读(203) 评论(0) 推荐(0)
摘要: N couples sit in 2N seats arranged in a row and want to hold hands. We want to know the minimum number of swaps so that every couple is sitting side b 阅读全文
posted @ 2020-10-01 12:51 Schwifty 阅读(150) 评论(0) 推荐(0)
摘要: The Leetcode file system keeps a log each time some user performs a change folder operation. The operations are described below: "../" : Move to the p 阅读全文
posted @ 2020-09-28 11:02 Schwifty 阅读(237) 评论(0) 推荐(0)
摘要: Given a square matrix mat, return the sum of the matrix diagonals. Only include the sum of all the elements on the primary diagonal and all the elemen 阅读全文
posted @ 2020-09-27 13:00 Schwifty 阅读(260) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 76 下一页