加载中...
分类详情
中等 分类
799-香槟塔(Champagne Tower)
原文链接: https://leetcode-cn.com/problems/champagne-tower 英文原文We stack glasses in a pyramid, where the first row has 1 glass, the second row has 2 glasses, and so on until the 100th row. Each glass holds one cup of champagne. Then, some champagne is pou…
2021-12-03
808-分汤(Soup Servings)
原文链接: https://leetcode-cn.com/problems/soup-servings 英文原文There are two types of soup: type A and type B. Initially, we have n ml of each type of soup. There are four kinds of operations: Serve 100 ml of soup A and 0 ml of soup B, Serve 75 ml of soup …
2021-12-03
816-模糊坐标(Ambiguous Coordinates)
原文链接: https://leetcode-cn.com/problems/ambiguous-coordinates 英文原文We had some 2-dimensional coordinates, like "(1, 3)" or "(2, 0.5)". Then, we removed all commas, decimal points, and spaces and ended up with the string s. For example, "(1, 3)" becomes…
2021-12-03
817-链表组件(Linked List Components)
原文链接: https://leetcode-cn.com/problems/linked-list-components 英文原文You are given the head of a linked list containing unique integer values and an integer array nums that is a subset of the linked list values. Return the number of connected components…
2021-12-03
707-设计链表(Design Linked List)
原文链接: https://leetcode-cn.com/problems/design-linked-list 英文原文Design your implementation of the linked list. You can choose to use a singly or doubly linked list. A node in a singly linked list should have two attributes: val and next. val is the val…
2021-12-03
831-隐藏个人信息(Masking Personal Information)
原文链接: https://leetcode-cn.com/problems/masking-personal-information 英文原文You are given a personal information string s, representing either an email address or a phone number. Return the masked personal information using the below rules. Email address…
2021-12-03
835-图像重叠(Image Overlap)
原文链接: https://leetcode-cn.com/problems/image-overlap 英文原文You are given two images, img1 and img2, represented as binary, square matrices of size n x n. A binary matrix has only 0s and 1s as values. We translate one image however we choose by sliding …
2021-12-03
838-推多米诺(Push Dominoes)
原文链接: https://leetcode-cn.com/problems/push-dominoes 英文原文There are n dominoes in a line, and we place each domino vertically upright. In the beginning, we simultaneously push some of the dominoes either to the left or to the right. After each second,…
2021-12-03
846-一手顺子(Hand of Straights)
原文链接: https://leetcode-cn.com/problems/hand-of-straights 英文原文Alice has some number of cards and she wants to rearrange the cards into groups so that each group is of size groupSize, and consists of groupSize consecutive cards. Given an integer array …
2021-12-03
848-字母移位(Shifting Letters)
原文链接: https://leetcode-cn.com/problems/shifting-letters 英文原文You are given a string s of lowercase English letters and an integer array shifts of the same length. Call the shift() of a letter, the next letter in the alphabet, (wrapping around so that …
2021-12-03