LeetCode
hia_echo
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode之Palindrome Number
写在前面:编程能力太弱,所以开始每天打卡刷题。此处是记录自己的刷题之路。加油! 这题是判断回文数字。如121是回文数字而123不是。我的解法:class Solution { public boolean isPalindrome(int x) { if(x<0) return false; if(x==0)...原创 2018-11-27 12:36:16 · 179 阅读 · 0 评论 -
LeetCode之Implement Stack using Queues
写在前面:第一次快速accepted,而且53 ms, faster than 98.61% of Java online submissions for Implement Stack using Queues.但是使用的是数组,貌似不是严格符合题目要求。1. 使用Arrayclass MyStack { private int top; private int[]...原创 2018-12-03 14:04:32 · 212 阅读 · 0 评论
分享