- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 Torch 安装过程
安装环境: 虚拟机+Ubuntu14.04 安装依赖: curl -sk https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash 安装LuaJIT, LuaRocks并LuaRocks安装Torch 和其他的包 git clone https://github.co
2015-08-30 18:41:07 3900
原创 Leetcode 234 Palindrome Linked List
Given a singly linked list, determine if it is a palindrome. Follow up: Could you do it in O(n) time and O(1) space? public class Solution234 { public boolean compare(ListNode ans1, Lis
2015-08-23 14:57:09 352
原创 Leetcode 235 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
2015-08-22 23:34:46 318
原创 Leetcode 236
Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The lowest common ancestor is defined between two node
2015-08-16 00:39:38 410
原创 LeetCode239 Sliding Window Maximum
Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in the window. Each time the sliding window
2015-08-04 00:06:14 420
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人