上一页 1 ··· 83 84 85 86 87 88 89 90 91 ··· 127 下一页

2019年12月4日

摘要: 地址 http://poj.org/problem?id=2991 题解 本来以为这是一个简单的线段树模板 不料始终不太明白线段树如何记录转动角度后的各个线段端的XY值 学习了网络上的一些博客题解 感觉似是而非 谈到复数 角度 向量等,有点不太好理解 现在这里将自己的理解记录如下 如图 1 预备知识 阅读全文
posted @ 2019-12-04 19:29 itdef 阅读(460) 评论(0) 推荐(0)

2019年12月3日

摘要: 地址 https://leetcode-cn.com/problems/number-of-enclaves/ 给出一个二维数组 A,每个单元格为 0(代表海)或 1(代表陆地)。 移动是指在陆地上从一个地方走到另一个地方(朝四个方向之一)或离开网格的边界。 返回网格中无法在任意次数的移动中离开网格 阅读全文
posted @ 2019-12-03 14:23 itdef 阅读(301) 评论(0) 推荐(0)

2019年12月1日

摘要: 地址 https://leetcode-cn.com/problems/number-of-burgers-with-no-waste-of-ingredients/ 目描述圣诞活动预热开始啦,汉堡店推出了全新的汉堡套餐。为了避免浪费原料,请你帮他们制定合适的制作计划。 给你两个整数 tomatoS 阅读全文
posted @ 2019-12-01 22:23 itdef 阅读(329) 评论(0) 推荐(0)
摘要: 地址 https://leetcode-cn.com/problems/find-winner-on-a-tic-tac-toe-game/submissions/ 题目描述A 和 B 在一个 3 x 3 的网格上玩井字棋。 井字棋游戏的规则如下: 玩家轮流将棋子放在空方格 (” “) 上。第一个玩 阅读全文
posted @ 2019-12-01 22:21 itdef 阅读(413) 评论(0) 推荐(0)
摘要: 地址 https://leetcode-cn.com/problems/range-sum-query-mutable/ 题目描述给定一个整数数组 nums,求出数组从索引 i 到 j (i ≤ j) 范围内元素的总和,包含 i, j 两点。 update(i, val) 函数可以通过将下标为 i  阅读全文
posted @ 2019-12-01 22:19 itdef 阅读(336) 评论(0) 推荐(0)
摘要: 地址 https://leetcode-cn.com/problems/hexspeak/ 题目描述字母大写的十六进制字符串,然后将所有的数字 0 变成字母 O ,将数字 1 变成字母 I 。 如果一个数字在转换后只包含 {“A”, “B”, “C”, “D”, “E”, “F”, “I”, “O” 阅读全文
posted @ 2019-12-01 22:13 itdef 阅读(536) 评论(0) 推荐(0)

2019年11月29日

摘要: 地址 http://121.48.165.90/problem/qiu-shi-da-ge-yu-hua/description 秋实大哥是一个儒雅之人,昼听笙歌夜醉眠,若非月下即花前。 所以秋实大哥精心照料了很多花朵。现在所有的花朵排成了一行,每朵花有一个愉悦值。 秋实大哥每天要对着某一段连续的花 阅读全文
posted @ 2019-11-29 19:32 itdef 阅读(332) 评论(0) 推荐(0)
摘要: 地址 https://www.acwing.com/problem/content/description/837/ 目描述维护一个字符串集合,支持两种操作: “I x”向集合中插入一个字符串x;“Q x”询问一个字符串在集合中出现了多少次。共有N个操作,输入的字符串总长度不超过 105,字符串仅包 阅读全文
posted @ 2019-11-29 14:34 itdef 阅读(276) 评论(0) 推荐(0)

2019年11月24日

摘要: 地址 https://leetcode-cn.com/problems/combination-sum-iii/ 解法 DFS 逐个尝试 本代码没加优化 性能一般 阅读全文
posted @ 2019-11-24 20:34 itdef 阅读(214) 评论(0) 推荐(0)
摘要: 地址 https://leetcode-cn.com/problems/subsets-ii/ 使用DFS 这里取了个巧 使用set做了去重 阅读全文
posted @ 2019-11-24 19:54 itdef 阅读(208) 评论(0) 推荐(0)
上一页 1 ··· 83 84 85 86 87 88 89 90 91 ··· 127 下一页

导航