自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 每日刷题 五月集训 第 5 天 - Two-Pointer

每日刷题 五月集训 第 5 天 - Two-Pointer165. Compare Version Numbers165. Compare Version Numbers题目介绍:Balanced strings are those that have an equal quantity of ‘L’ and ‘R’ characters.Given a balanced string s, split it in the maximum amount of balanced strings.Re

2022-05-05 23:58:25 218

原创 每日刷题 第 4 天 - Greedy

每日刷题 五月集训 第 4 天 - Greedy2144. Minimum Cost of Buying Candies With Discount1400. Construct K Palindrome Strings2144. Minimum Cost of Buying Candies With Discount题目介绍:A shop is selling candies at a discount. For every two candies sold, the shop gives a th

2022-05-04 23:52:51 209

原创 每日刷题 五月集训 第 3 天 - Sorting

参加英雄哥的五月集训第三天!sorting类型题目

2022-05-03 14:55:08 108

原创 424. Longest Repeating Character Replacement

这道题的重点是:根据当下substring在最常出现letter之外的空位数是否大于K 来slide window。right 不断地increment 可用for loop 也可以 increment right。(right - left + 1 是因为表示当下的长度, array idx小一位的。)class Solution { public int characterReplacement(String s, int k) { if(s.len

2022-04-14 15:11:21 111

原创 [DP] 467. Unique Substrings in Wraparound String

DP问题 467 寻找unique substring的数量 (从长度为26的strings中)

2022-04-13 05:59:47 203

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除