摘要: Given a sentence text (A sentence is a string of space-separated words) in the following format: First letter is in upper case. Each word in text are 阅读全文
posted @ 2020-08-14 08:01 little_veggie 阅读(172) 评论(0) 推荐(0)
摘要: 1. 高效运输 输入:产品i有boxes[i]箱, 每箱装unitsPerBox[i]个,卡车最多装truckSize箱 输出:一车能运的max units Greedy, 用map扫一遍。 2. 快乐字母异位词 输入:a list of strings 输出:如果cur是之前某个str的anagr 阅读全文
posted @ 2020-08-14 06:16 little_veggie 阅读(194) 评论(0) 推荐(0)