摘要:
In 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.You're given a matrix represented by a two-dimensi... 阅读全文
posted @ 2017-09-10 18:40
稀里糊涂林老冷
阅读(297)
评论(0)
推荐(0)
摘要:
You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers for nums1's elements in the corresponding places of nums2.Th... 阅读全文
posted @ 2017-09-10 18:25
稀里糊涂林老冷
阅读(213)
评论(0)
推荐(0)
摘要:
Given a List of words, return the words that can be typed using letters of alphabet on only one row's of American keyboard like the image below.American keyboardExample 1:Input: ["Hello", "Alaska", "D... 阅读全文
posted @ 2017-09-10 18:14
稀里糊涂林老冷
阅读(226)
评论(0)
推荐(0)
摘要:
You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/vertically (not diagonally). The grid is completely ... 阅读全文
posted @ 2017-09-10 18:09
稀里糊涂林老冷
阅读(310)
评论(0)
推荐(0)
摘要:
Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one candy of the corresponding kind. You need to distribute these... 阅读全文
posted @ 2017-09-10 18:04
稀里糊涂林老冷
阅读(251)
评论(0)
推荐(0)
摘要:
leetcode算法: Find Bottom Left Tree ValueGiven a binary tree, find the leftmost value in the last row of the tree.Example 1:Input: 2 / \ 1 3Output:1Example 2: Input: 1 / \ 2 ... 阅读全文
posted @ 2017-09-10 17:32
稀里糊涂林老冷
阅读(285)
评论(0)
推荐(0)