- 博客(22)
- 收藏
- 关注
原创 leetcode No.49 字母异位词分组
leetcode No.49 字母异位词分组题目题意思路代码题目给定一个字符串数组,将字母异位词组合在一起。字母异位词指字母相同,但排列不同的字符串。示例:输入: ["eat", "tea", "tan", "ate", "nat", "bat"]输出:[ ["ate","eat","tea"], ["nat","tan"], ["bat"]]题意字面意思,就是对所有包含相同字母的字符串聚到一类。写法很笨,主要是为了熟悉JAVA语法。思路使用 list 维护输出,即储存满
2020-12-14 17:54:28 81
原创 某一维线性dp
线性dp题目:Mr. Wang need to get a string which consists of n letters of ‘k’ for his work. Initially the string is empty.He has two methods to modify the string.He can cost x seconds to insert or delete a
2017-03-12 22:12:29 366
原创 #poj 2286 入门级IDA*
poj 2286 IDA*题目:The rotation game uses a # shaped board, which can hold 24 pieces of square blocks (see Fig.1). The blocks are marked with symbols 1, 2 and 3, with exactly 8 pieces of each kind. Init
2016-08-19 10:17:53 405
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人