![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
MrWrong
这个作者很懒,什么都没留下…
展开
-
LeetCode Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the target, whe原创 2014-04-15 10:59:00 · 491 阅读 · 0 评论 -
LeetCode Reverse Polish Notation求逆波兰表达式值
public class Solution {public static int evalRPN(String[] tokens) { Stack stack = new Stack(); String operatorsString = "+-*/"; for(int i = 0 ; i < tokens.length ; i++) { if(!operatorsStr原创 2014-04-15 14:18:09 · 529 阅读 · 0 评论