摘要:
Android 系统为开发者提供了什么? 1. 四大组件 活动(Activity):界面 服务(Service):后台默默运行 广播接收器(Broadcast Receiver):接收、发送广播消息 内容提供器(Content Provider):应用程序之间共享数据 2. 系统控件(界面控件) 3 阅读全文
摘要:
原题链接: "https://leetcode.com/problems/valid perfect square/description/" 实现如下: 阅读全文
摘要:
原题链接: "https://leetcode.com/problems/intersection of two arrays ii/description/" 实现如下: 阅读全文
摘要:
原题链接: "https://leetcode.com/problems/intersection of two arrays/description/" 实现如下: Java import java.util.ArrayList; import java.util.Arrays; import j 阅读全文
摘要:
原题链接: "https://leetcode.com/problems/reverse vowels of a string/description/" 跟反转字符串那道题目类似,直接双指针方法走起: 阅读全文
摘要:
去哪儿面试的最后一道题,开始我写了全数遍历的实现代码,然后面试官要求使用递归来实现,但是我一个算法战五渣早就忘记递归是个什么鬼了,然后面试就GG了。 对于这道题目的解答方法有多种,先把它们全部列出来吧: 全数遍历; 半数遍历; 递归实现; 使用栈来实现; 全数遍历(我的答案) 刚开始,我写的是最近的 阅读全文
摘要:
原题链接: "https://leetcode.com/problems/reverse string/description/" 实现如下: Java / Created by clearbug on 2018/2/26. / public class Solution { public stat 阅读全文
摘要:
原题链接: "https://leetcode.com/problems/power of four/description/" 这道题目我没想出实现来,看得讨论区别人的答案: 阅读全文
摘要:
原题链接: "https://leetcode.com/problems/power of three/description/" 实现如下: Java / Created by clearbug on 2018/2/26. / public class Solution { public stat 阅读全文
摘要:
原题链接: "https://leetcode.com/problems/range sum query immutable/description/" 实现如下: Java / Created by clearbug on 2018/4/8. / public class NumArray { p 阅读全文