- 博客(28)
- 收藏
- 关注
原创 leetcode.566.Reshape the Matrix
DescriptionIn MATLAB, there is a very useful function called ‘reshape’, which can reshape a matrix into a new one with different size but keep its original data.
2017-07-05 14:32:37
238
原创 leetcode.500.Keyboard Row
Given a List of words, return the words that can be typed using letters of alphabet on only one row’s of American keyboard
2017-07-05 14:15:35
201
原创 leetcode.557.Reverse Words in a String III
Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order.
2017-06-15 13:54:32
281
原创 leetcode.476.Number Complement
Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation.
2017-06-15 01:00:26
179
原创 leetcode.561.Array Partition I
Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of min(ai, bi) for all i from 1 to n as large as possible.
2017-06-14 20:48:09
158
原创 leetcode.461.Hamming Distance
Given two integers x and y, calculate the Hamming distance.
2017-06-14 15:58:57
177
原创 leetcode.617.Merge Two Binary Trees
Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are not.
2017-06-14 15:41:33
693
原创 leetcode.258.Add Digits
Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.
2017-06-14 15:17:56
164
原创 leetcode.136.Single Number
Given an array of integers, every element appears twice except for one. Find that single one.
2017-06-14 15:16:39
151
原创 leetcode.303.Range Sum Query - Immutable
DescriptionGiven an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.
2017-06-02 21:32:36
142
原创 leetcode.70.Climbing Stairs
You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top
2017-04-23 14:41:42
172
原创 leetcode.121.Best Time to Buy and Sell Stock
DescriptionSay you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the s
2017-04-17 15:52:23
234
原创 论文阅读《Joint Learning of Single-image Cross-image Representations for Person Re-identification》
文章尝试分析SIR和CIR之间的关系以及如何通过融合两种方法来综合效率(efficiency)和准确度(effectiveness)
2017-04-15 10:46:55
2593
1
原创 leetcode.122.Best Time to Buy and Sell Stock II
Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit.
2017-03-31 15:44:18
187
原创 论文阅读《Deep Vieo Code for Efficient Face Video》
文章提出了一种multi-branch CNN架构,接受一段人脸视频帧流作为输入,并输出一个二进制编码作为视频的特征(Deep Video Code, DVC),使得属于同一个人的视频帧流之间的汉明距离(Hamming Distance)小于不同人的视频帧流的距离
2017-03-27 22:13:04
523
原创 leetcode.455.Assign Cookies
Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a greed factor gi, which is the minimum siz
2017-03-25 15:30:04
171
原创 leetcode.107.Binary Tree Level Order Traversal II
DescriptionGiven a binary tree, return the bottom-up level order traversal of its nodes’ values. (ie, from left to right, level by level from leaf to root).
2017-03-15 22:54:35
159
原创 leetcode.101.Symmetric Tree
DescriptionGiven a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
2017-03-12 16:13:17
172
原创 leetcode.215.Kth Largest Element in an Array
leetcode.215.Kth Largest Element in an ArrayFind the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.
2017-03-04 17:26:23
187
原创 leetcode.53.Maximum Subarray
DescriptionFind the contiguous subarray within an array (containing at least one number) which has the largest sum.
2017-02-25 15:47:25
151
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人