- 博客(38)
- 资源 (1)
- 收藏
- 关注
原创 Leetcode 之 sumOfLeftLeave
问题描述: RT, 就是算出一棵树的所有左叶子的和简单的递归问题,代码如下:public int sumOfLeftLeaves(TreeNode root) {if(root==null)return 0; if(root.left!=null&&root.left.right==null&&root.left.left==null)return r
2017-01-04 00:20:45 660
原创 Leetcode 之 Lowest Common Ancestor of a Binary Search Tree
问题描述: Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.According to the definition of LCA on Wikipedia: “The lowest common ancestor is defined betw
2017-01-04 00:18:17 361
原创 Leetcode 之 Remove Duplicates from Sorted List
Leetcode 之 remove duplicates from sorted list
2016-12-26 19:37:50 313
原创 Leetcode 之 Intersection of Two Linked Lists
Leetcode 之 Intersection of Two Linked Lists
2016-12-24 11:58:47 326
原创 Leetcode 中 ListNode 的 reverse以及 快慢指针取中点
reverse List的方法 以及 使用快慢指针法得到List的后半段List的方法
2016-12-24 10:49:31 642
原创 Leetcode 之 Remove Linked List Elements
Leetcode 之 Remove Linked List Elements
2016-12-23 23:17:36 292
原创 Leetcode 之 Delete Node in a Linked List
leetcode 之 Delete Node in a Linked List
2016-12-23 21:59:28 281
原创 Leetcode 之 Remove Nth Node From End of List
leetcode 之 Remove Nth Node From End of List
2016-12-15 19:53:54 277
原创 Leetcode 之 Minimum Moves to Equal Array Elements II
Leetcode 之 Minimum Moves to Equal Array Elements II
2016-12-15 14:27:05 312
原创 Leetcode 之 Find All Anagrams in a String
Leetcode 之 Find All Anagrams in a String
2016-12-15 11:05:40 331
原创 Leetcode 之 Intersection of Two Arrays II
leetcode 之 Intersection of Two Arrays II
2016-12-14 23:23:40 369
原创 SSH 远程连接服务器
之前只会用桌面版服务器,暑期去美国实习一段时间,没啥学会的,倒是知道怎么用server版的服务器了。一般都会有一个类似email地址的地址给你,就是你登录服务器的地址,我的是5*@**.cs.virginia.edu,用ssh登录的方法就是: 1. 打开terminal; 2. 输入 ssh 5*@**.cs.virginia.edu 3. 然后会弹出一个密码输入的提示,输入你的密码就好了~
2016-12-11 13:22:02 546
原创 论文:Sketch-a-Net that Beats Humans(附带CNN的理解)
这周看了一篇论文,是学校要求的,题目叫做Sketch-a-Net that Beats Humans,由QM的老师发表在BMVC 2015。 这篇论文我看了一下,感觉思路上还是很有趣的,而且解决的问题也比较有价值,但为什么只发在了一个C类会议上,有点诧异。论文是基于CNN做了一点improvement的。我也是借这个机会稍微了解了一下CNN, 之前看过neutral network,所以看CNN还是
2016-12-09 16:13:57 3216
原创 Leetcode 之 ContainsDuplicate III
Leetcode 之 ContainsDuplicateIII (TreeSet 的使用)
2016-12-06 10:41:34 280
原创 Leetcode 之 Majority Element I-- HashMap法以及 摩尔投票法
Leetcode 之Majority Element I
2016-12-05 21:41:32 591
转载 Leetcode 之 Linked List Cycle I
Linked List Cycle I Given a linked list, determine if it has a cycle in it.Follow up: Can you solve it without using extra space?思路《转载》 这是一道非常经典的双指针题。我们从头设置一个快指针,一个慢指针。快指针一次走两步,慢指针一次走一步,如果快指针走到了尽头,则说
2016-12-04 16:43:25 295
原创 论文阅读:SCTM
SCTM论文的名字叫做Going Beyond Corr-LDA for Detecting Specific Comments on News & Blogs。亮点 之前有一篇叫corr-lda的,思想是利用了article与review的correspondence, corr-lda总结下来就是:article沿用了LDA的思想,但是认为comment和article是有联系的,c
2016-12-02 23:13:32 1000
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人