上一页 1 2 3 4 5 6 ··· 76 下一页
摘要: Given a string s , find the length of the longest substring t that contains at most 2 distinct characters. Example 1: Input: "eceba" Output: 3 Explana 阅读全文
posted @ 2022-08-14 06:14 Schwifty 阅读(16) 评论(0) 推荐(0) 编辑
摘要: Given an array of unique integers, arr, where each integer arr[i] is strictly greater than 1. We make a binary tree using these integers, and each num 阅读全文
posted @ 2022-08-10 11:42 Schwifty 阅读(17) 评论(0) 推荐(0) 编辑
摘要: There are buckets buckets of liquid, where exactly one of the buckets is poisonous. To figure out which one is poisonous, you feed some number of (poo 阅读全文
posted @ 2022-08-06 10:36 Schwifty 阅读(35) 评论(0) 推荐(0) 编辑
摘要: You are implementing a program to use as your calendar. We can add a new event if adding the event will not cause a double booking. A double booking h 阅读全文
posted @ 2022-08-03 12:59 Schwifty 阅读(12) 评论(0) 推荐(0) 编辑
摘要: Given an array nums, partition it into two (contiguous) subarrays left and right so that: Every element in left is less than or equal to every element 阅读全文
posted @ 2021-07-23 05:25 Schwifty 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 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 t 阅读全文
posted @ 2021-07-22 06:29 Schwifty 阅读(33) 评论(0) 推荐(0) 编辑
摘要: A string s is called good if there are no two different characters in s that have the same frequency. Given a string s, return the minimum number of c 阅读全文
posted @ 2021-07-21 05:08 Schwifty 阅读(314) 评论(0) 推荐(0) 编辑
摘要: Given a string s, return the number of palindromic substrings in it. A string is a palindrome when it reads the same backward as forward. A substring  阅读全文
posted @ 2021-07-20 10:31 Schwifty 阅读(32) 评论(0) 推荐(0) 编辑
摘要: You are given two m x n binary matrices grid1 and grid2 containing only 0's (representing water) and 1's (representing land). An island is a group of  阅读全文
posted @ 2021-07-16 07:46 Schwifty 阅读(34) 评论(0) 推荐(0) 编辑
摘要: order and str are strings composed of lowercase letters. In order, no letter occurs more than once. order was sorted in some custom order previously. 阅读全文
posted @ 2021-07-14 23:59 Schwifty 阅读(25) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 76 下一页