2019年7月30日

[LeetCode] 150. 逆波兰表达式求值

摘要: 题目链接 : https://leetcode cn.com/problems/evaluate reverse polish notation/ 题目描述: 根据逆波兰表示法,求表达式的值。 有效的运算符包括 +, , , / 。每个运算对象可以是整数,也可以是另一个逆波兰表达式。 说明: 整数除 阅读全文

posted @ 2019-07-30 20:52 威行天下 阅读(158) 评论(0) 推荐(0) 编辑

[LeetCode] 151. 翻转字符串里的单词

摘要: 题目链接 : https://leetcode cn.com/problems/reverse words in a string/ 题目描述: 给定一个字符串,逐个翻转字符串中的每个单词。 示例: 示例 1: 示例 2: 示例 3: 思路: 思路一: 使用 和`reverse` java 思路二: 阅读全文

posted @ 2019-07-30 20:52 威行天下 阅读(154) 评论(0) 推荐(0) 编辑

导航