2020年4月8日

翻转字符串里的单词 字符串处理

摘要: 给定一个字符串,逐个翻转字符串中的每个单词。 示例 1: 输入: "the sky is blue" 输出: "blue is sky the" leetcode https://leetcode-cn.com/problems/reverse-words-in-a-string //数据结构学太狠 阅读全文

posted @ 2020-04-08 17:30 洛小侠 阅读(438) 评论(0) 推荐(0) 编辑

最大数--自定义排序方法、数字与字符串互转、字符串拼接

摘要: 给定一组非负整数,重新排列它们的顺序使之组成一个最大的整数。 https://leetcode-cn.com/problems/largest-number/ 关于自定义比较器:https://www.cnblogs.com/gaoBlog/p/10754935.html 使用Comparator接 阅读全文

posted @ 2020-04-08 14:37 洛小侠 阅读(241) 评论(0) 推荐(0) 编辑

导航