摘要:
Problem A "题目" 题意: 分析 直接滑动窗口解决O(n) 代码 Java class Solution { public static void main(String[] args) { Scanner in = new Scanner(new BufferedReader(new I 阅读全文
摘要:
984. String Without AAA or BBB 题意 Given two i S has length A + B and contains exactly A 'a' letters, and exactly B 'b' letters; The substring 'aaa' do 阅读全文
摘要:
"943.Find the Shortest Superstring" Given an array A of strings, find any smallest string that contains each string in A as a substring. We may assume 阅读全文
摘要:
今天算法群里出的一道题,题目不难,但是这道题有多种解法,而且注意分析每种解法的时间复杂度,不能超时 题目: We have jobs: difficulty[i] is the difficulty of the ith job, and profit[i] is the profit of the 阅读全文