摘要: My first version brute force solution just switch the chars one by one and compare with the max value. The time complaxity is O(n2). public int maximu 阅读全文
posted @ 2022-02-07 15:02 阳光明媚的菲越 阅读(23) 评论(0) 推荐(0) 编辑
摘要: When I got this problem, I used one Deque and one map to solve it, the solution is as following, the time complexity of get() and put() is O(n), n is 阅读全文
posted @ 2022-02-07 11:31 阳光明媚的菲越 阅读(31) 评论(0) 推荐(0) 编辑