摘要:
@Controller @Controller public class ViewController { @RequestMapping("view") public String view(){ return "view.html"; } } --或者-- @Controller public 阅读全文
摘要:
利用二分去寻找答案 「二分」的本质是两段性,并非单调性。只要一段满足某个性质,另外一段不满足某个性质,就可以用「二分」。 1760. Minimum Limit of Balls in a Bag https://leetcode.cn/problems/minimum-limit-of-balls 阅读全文
摘要:
题目 https://leetcode.cn/problems/longest-turbulent-subarray/ Given an integer arrayarr, return the length of a maximum size turbulent subarray of arr. 阅读全文