上一页 1 2 3 4 5 6 7 8 9 10 ··· 76 下一页
摘要: Given a string s, a k duplicate removal consists of choosing k adjacent and equal letters from s and removing them causing the left and the right side 阅读全文
posted @ 2021-04-16 16:38 Schwifty 阅读(53) 评论(0) 推荐(0)
摘要: Given a string s, a k duplicate removal consists of choosing k adjacent and equal letters from s and removing them causing the left and the right side 阅读全文
posted @ 2021-04-16 16:33 Schwifty 阅读(32) 评论(0) 推荐(0)
摘要: You are given a nested list of integers nestedList. Each element is either an integer or a list whose elements may also be integers or other lists. Im 阅读全文
posted @ 2021-04-14 07:46 Schwifty 阅读(43) 评论(0) 推荐(0)
摘要: Given two integers n and k, you need to construct a list which contains n different positive integers ranging from 1 to n and obeys the following requ 阅读全文
posted @ 2021-04-13 04:24 Schwifty 阅读(40) 评论(0) 推荐(0)
摘要: In an alien language, surprisingly they also use english lowercase letters, but possibly in a different order. The order of the alphabet is some permu 阅读全文
posted @ 2021-04-10 05:18 Schwifty 阅读(60) 评论(0) 推荐(0)
摘要: You are given a string s of even length. Split this string into two halves of equal lengths, and let a be the first half and b be the second half. Two 阅读全文
posted @ 2021-04-07 16:02 Schwifty 阅读(70) 评论(0) 推荐(0)
摘要: We have some permutation A of [0, 1, ..., N - 1], where N is the length of A. The number of (global) inversions is the number of i < j with 0 <= i < j 阅读全文
posted @ 2021-04-06 06:40 Schwifty 阅读(54) 评论(0) 推荐(0)
摘要: You are given an array prices where prices[i] is the price of a given stock on the ith day, and an integer fee representing a transaction fee. Find th 阅读全文
posted @ 2021-03-17 08:38 Schwifty 阅读(64) 评论(0) 推荐(0)
摘要: TinyURL is a URL shortening service where you enter a URL such as https://leetcode.com/problems/design-tinyurl and it returns a short URL such as http 阅读全文
posted @ 2021-03-16 00:47 Schwifty 阅读(44) 评论(0) 推荐(0)
摘要: You are given the head of a linked list, and an integer k. Return the head of the linked list after swapping the values of the kth node from the begin 阅读全文
posted @ 2021-03-15 03:51 Schwifty 阅读(52) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 76 下一页