- 博客(31)
- 收藏
- 关注
原创 lintcode-3-统计数字
统计数字描述 笔记 数据 评测 计算数字k在0到n中的出现的次数,k可能是0~9的一个值您在真实的面试中是否遇到过这个题? Yes 样例 例如n=12,k=1,在 [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],我们发现1出现了5次 (1, 10, 11, 12)class Solution { /* * param k :
2016-08-18 10:16:23 358
原创 git
git提交使用git-cola工具ubuntu sudo apt-get install git-colagit checkout -b git branch git branch -d 切换分支git出现permission deny添加ssh-key,将.ssh中以前的pub之类的文件删除执行:s
2016-07-08 15:19:27 464
原创 287. Find the Duplicate Number
287. Find the Duplicate Number Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. Assume that there i
2016-07-07 14:33:24 493
原创 android 6.0 以后 WebView改动
android 6.0Building the Chromium-based WebView in AOSP is no longer supported. WebView cannow be built entirely from the Chromium source code.General instructions for building WebView from C
2016-07-07 11:49:45 4651
原创 adb bash
adb bash not found造成此类现象的原因是:未配置Android的环境变量。因此,您需为Mac中的Android SDK配置环境变量。1、启动Mac自带的终端Terminal。进入当前用户的home目录。2、在命令行输入echo $HOME3、创建.bash_profile文件。4、命令行输入touch .bash_profile 打开.bash_pro
2016-07-05 16:31:02 692
原创 最近的面试小结
连续两周,陆陆续续面试了一些公司。一、网易 电商环境不错,先做了下笔试,然后针对卷子聊了聊a、内部类的问题b、animal的效果实现c、加载本地图片d、scrollview和listviewe、其他一些简单的java基础f、activity切换的具体生命周期,每个方法做了哪些操作,他们的区别。g、聊了下简历上的项目,RN的实现。一面gg,java基础上答的不
2016-06-08 15:46:38 367
原创 leetcode 206
Reverse Linked List Reverse a singly linked list.1、swap in-placeListNode* reverseList(ListNode* head) { if(head==NULL || head->next==NULL) return head; ListNode *pre =
2016-05-05 11:37:48 401
原创 leetcode 318
318. Maximum Product of Word LengthsGiven a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assume that
2016-05-05 11:11:56 422
原创 leetcode 344
ResverStringWrite a function that takes a string as input and returns the string reversed.Example:Given s = "hello", return "olleh".Subscribe to see which companies asked this ques
2016-05-02 18:07:28 491
原创 2016-04-20 for http协议
1、状态码。200 OK301 永久重定向302 303 临时重定向,303 强制要求get403 forbidden 404 not found 400 badrequest500 服务器错误 503 service unavaiable
2016-04-18 16:29:57 409
原创 2016-04-18
项目中用到的数据结构:1、LinkedList:处理商家端数据ArrayList 类似于数组,它通过实例化Object对象,实现一个实例,LinkedList 双端队列,通过链表链接,每个节点中包含上一个节点的引用,下一个节点的引用以及存储的值。2、HashMap: a.HashMap,是一个散列表,存储的是键值对(key-value) b.
2016-04-18 16:27:47 254
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人