摘要: leetcode 每日一题 1037. 有效的回旋镖 百度搜了个两点一线方程公式,然后把3个点带入计算,一直出错,后来发现公式错误,用go语言自己写了个简单的判断 func isBoomerang(points [][]int) bool { ax,ay := points[0][0],points 阅读全文
posted @ 2022-06-08 10:31 java架构师1 阅读(26) 评论(0) 推荐(0)
摘要: leetcode 每日一题 464. 我能赢吗 class Solution { Map<Integer, Boolean> memo = new HashMap<Integer, Boolean>(); public boolean canIWin(int maxChoosableInteger, 阅读全文
posted @ 2022-06-08 09:24 java架构师1 阅读(40) 评论(0) 推荐(0)