摘要: 题目如下: We write the integers of A and B (in the order they are given) on two separate horizontal lines. Now, we may draw connecting lines: a straight l 阅读全文
posted @ 2019-05-21 17:49 seyjs 阅读(1335) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given a list of words, each word consists of English lowercase letters. Let's say word1 is a predecessor of word2 if and only if we can add exac 阅读全文
posted @ 2019-05-21 14:38 seyjs 阅读(1990) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given a string S of lowercase letters, a duplicate removal consists of choosing two adjacent and equal letters, and removing them. We repeatedly 阅读全文
posted @ 2019-05-21 14:33 seyjs 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 题目如下: We have a collection of rocks, each rock has a positive integer weight. Each turn, we choose the two heaviest rocks and smash them together. Sup 阅读全文
posted @ 2019-05-21 14:30 seyjs 阅读(592) 评论(0) 推荐(0) 编辑