- 博客(8)
- 资源 (58)
- 问答 (1)
- 收藏
- 关注
原创 leetcode之找光棍数
题目:Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you implement it without
2014-12-25 23:04:47 730
原创 leetcode之数组中找两数和为指定值
题目:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the ta
2014-12-25 22:53:13 1088
原创 leetcode之倒转一句话单词
题目:Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".click to show clarification.Clarification:What co
2014-12-25 21:56:56 828
原创 leetcode之图片(矩阵)旋转
题目:You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?思路:题目的关键在in-place,否则就太容易了,为了达到in-place只能
2014-12-24 22:22:25 812
原创 leetcode之LRU实现
题目:Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.get(key) - Get the value (will always be positive) of th
2014-12-22 23:00:39 849
原创 leetcode之判断两链表首次交汇节点
题目:Intersection of Two Linked ListsWrite a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A:
2014-12-13 22:09:31 535
原创 leetcode之判断是否BST二分搜索树
题目:Validate Binary Search TreeGiven a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only nod
2014-12-13 22:00:44 1260
原创 leetcode之有随机指针的链表深拷贝
题目:Copy List with Random PointerA linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy of
2014-12-13 11:51:55 3260
次序统计 order statistics 算法
2011-06-07
java操纵ftp上传的客户端实现
2011-06-04
基数排序radix sort
2011-06-02
计数排序JAVA实现counting sort algorithm
2011-05-31
第一个hibernate程序
2011-05-23
java围棋v10
2013-08-13
inside java virtual machine(深入学习java虚拟机)
2011-07-10
update sybase越来越慢,求大神解救
2013-10-26
TA创建的收藏夹 TA关注的收藏夹
TA关注的人