- 博客(10)
- 资源 (2)
- 收藏
- 关注
原创 LeetCode 1.Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not use the same
2017-07-02 23:16:03
224
原创 AngularJS中ng-change不生效
onchange会使ng-change失效。 解决方法: 使用onchange,例如onchange=”angular.element(this).scope().testFunction()”
2016-12-15 17:16:18
5293
原创 Java实现的堆排序(最小堆)
//堆排序的实现(最小堆) public class HeapSort {static int temp; public static void shift(int r[],int k,int m){//筛选法调整堆 int i=k,j=k*2; while(j<=m){ if(j<m&&r[j]<r[j+1]) j++; if(r[i]<r[j])
2015-09-17 16:58:56
435
原创 LeetCode:Excel Sheet Column Number
Excel Sheet Column Number Total Accepted: 31455 Total Submissions: 86178My Submissions Question Solution Related to question Excel Sheet Column Title Given a column title as appe
2015-06-24 20:39:05
273
原创 LeetCode:Number of 1 Bits
Number of 1 Bits Total Accepted: 34078 Total Submissions: 91348My Submissions Question Solution Write a function that takes an unsigned integer and returns the number of ’1' bits
2015-06-24 20:34:36
220
原创 LeetCode:Best Time to Buy and Sell Stock II
Best Time to Buy and Sell Stock II Total Accepted: 49789 Total Submissions: 130095My Submissions Question Solution Say you have an array for which the ith element is the price of
2015-06-24 20:31:55
360
原创 LeetCode:Same Tree
Same Tree Total Accepted: 65115 Total Submissions: 155756My Submissions Question Solution Given two binary trees, write a function to check if they are equal or not. Two binary t
2015-06-24 20:05:02
222
原创 LeetCode:Maximum Depth of Binary Tree
Maximum Depth of Binary Tree Total Accepted: 69754 Total Submissions: 154717My Submissions Question Solution Given a binary tree, find its maximum depth. The maximum depth is the
2015-06-24 19:58:57
212
转载 LeetCode:Single Number
Single Number Total Accepted: 74470 Total Submissions: 165136My Submissions Question Solution Given an array of integers, every element appears twice except for one. Find that sin
2015-06-24 19:49:33
232
银行家算法
2014-11-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人