OJ题目 : 戳这里~ 描述 Vawio Sequence is very funny,it is a sequence of integers. It has some interesting properties. · Vawio is of odd length i.e. L = 2*n + 1. · The first (n+1) integers of Vawio s
题:https://leetcode.com/submissions/detail/187840512/ 题目 A string S of lowercase letters is given. We want to partition this string into as many parts as possible so that each letter appears in at mo
解题思路: class Solution {public List<Integer> partitionLabels(String s) {int[] last = new int[26];int len = s.length();for (int i = 0; i < len; i++) {last[s.charAt(i) - 'a'] = i;//记录字母最远的下标}List
文档链接:https://programmercarl.com/ LeetCode435.无重叠区间 题目链接:https://leetcode.cn/problems/non-overlapping-intervals/ 思路:同上一题用最少数量的箭引爆气球几乎一模一样呢,凡是重叠区间问题记得先排序。 代码: class Solution {public:static bool cm