摘要: Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or another expression. For example: ["2", "1", "+", "3", "*"]... 阅读全文
posted @ 2016-02-19 17:32 小魔仙 阅读(302) 评论(0) 推荐(0) 编辑
摘要: You may have been using Java for a while. Do you think a simple Java array question can be a challenge? Let's use the following problem to test. Problem: Rotate an array of n elements to the right by... 阅读全文
posted @ 2016-02-19 17:17 小魔仙 阅读(369) 评论(0) 推荐(0) 编辑
摘要: If we want to copy an array, we can use either System.arraycopy() or Arrays.copyOf(). In this post, I use a simple example to demonstrate the difference between the two. 1. Simple Code Examples Syst... 阅读全文
posted @ 2016-02-19 17:01 小魔仙 阅读(352) 评论(0) 推荐(0) 编辑