最新文章列表

hive array、map、struct使用

hive提供了复合数据类型:Structs: structs内部的数据可以通过DOT(.)来存取,例如,表中一列c的类型为STRUCT{a INT; b INT},我们可以通过c.a来访问域aMaps(K-V对):访问指定域可以通过["指定域名称"]进行,例如,一个Map M包含了一个group-》gid的kv对,gid的值可以通过M['group']来获取Arrays:arr ...
daizj 评论(0) 有2091人浏览 2015-11-06 19:40

LeetCode-63-Unique Paths II

  Unique Paths II   来自 <https://leetcode.com/problems/unique-paths-ii/>   Follow up for "Unique Paths":   Now consider if some obstacles are added to the grids. How many uniqu ...
随便小屋 评论(0) 有1172人浏览 2015-09-14 11:04

LeetCode-48-Rotate Image

Rotate Image     来自 <https://leetcode.com/problems/rotate-image/> You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up: Could yo ...
随便小屋 评论(0) 有953人浏览 2015-09-07 21:30

LeetCode-74-Search a 2D Matrix

Search a 2D Matrix   来自 <https://leetcode.com/problems/search-a-2d-matrix/> Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following propertie ...
随便小屋 评论(0) 有980人浏览 2015-09-07 20:24

【总结】关于List的一些容易出错的地方

1.关于list.isEmpty 只要有list.add操作。即使是list.add("") (1次或若干次),list.isEmpty也是返回false; 如果你仅仅是声明一个List,而没有add操作,则li ...
Everyday都不同 评论(1) 有2506人浏览 2015-09-07 17:19

LeetCode-34-Search for a Range

Search for a Range   来自 <https://leetcode.com/problems/search-for-a-range/> Given a sorted array of integers, find the starting and ending position of a given target value. Your algorithm' ...
随便小屋 评论(0) 有856人浏览 2015-08-31 08:45

LeetCode-73-Set Matrix Zeroes

Matrix Zeroes   来自 <https://leetcode.com/problems/set-matrix-zeroes/> Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. click to show follow up. ...
随便小屋 评论(0) 有1029人浏览 2015-08-30 13:56

LeetCode-62-Unique Paths*(动态规划)

 Unique Paths   来自 <https://leetcode.com/problems/unique-paths/>   A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move ...
随便小屋 评论(0) 有957人浏览 2015-08-29 20:22

LeetCode-79-Word Search*

  Word Search       来自 <https://leetcode.com/problems/word-search/>   Given a 2D board and a word, find if the word exists in the grid.   The word can be constructed from letters of s ...
随便小屋 评论(0) 有719人浏览 2015-08-29 11:15

LeetCode-209-Minimum Size Subarray Sum

Minimum Size Subarray Sum   来自 <https://leetcode.com/problems/minimum-size-subarray-sum/> Given an array of n positive integers and a positive integer s, find the minimal length of a subarr ...
随便小屋 评论(0) 有1088人浏览 2015-08-27 14:28

Leetcode-217-Contains Duplicate

Contains Duplicate 来自 <https://leetcode.com/problems/contains-duplicate/> Given an array of integers, find if the array contains any duplicates. Your function should return true if any value ...
随便小屋 评论(0) 有743人浏览 2015-08-27 08:41

Leetcode-219-Contains Duplicate II

Contains Duplicate II 来自 <https://leetcode.com/problems/contains-duplicate-ii/>   Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the ...
随便小屋 评论(0) 有695人浏览 2015-08-27 08:40

Leetcode-228-Summary Ranges

Summary Ranges   来自 <https://leetcode.com/problems/summary-ranges/> Given a sorted integer array without duplicates, return the summary of its ranges. For example, given [0,1,2,4,5,7], ret ...
随便小屋 评论(0) 有689人浏览 2015-08-27 08:38

Leetcode-169-Majority Element

Majority Element   来自 <https://leetcode.com/problems/majority-element/>   Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ ...
随便小屋 评论(0) 有599人浏览 2015-08-26 14:53

Leetcode-119-Pascal's Triangle II

Pascal's Triangle II     来自 <https://leetcode.com/problems/pascals-triangle-ii/> Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3, Return [1,3,3,1]. ...
随便小屋 评论(0) 有703人浏览 2015-08-26 09:27

Leetcode-118-Pascal's Triangle

Pascal's Triangle   来自 <https://leetcode.com/problems/pascals-triangle/> Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5, Return [      [1], ...
随便小屋 评论(0) 有689人浏览 2015-08-26 08:51

最近博客热门TAG

Java(141747) C(73651) C++(68608) SQL(64571) C#(59609) XML(59133) HTML(59043) JavaScript(54918) .net(54785) Web(54513) 工作(54116) Linux(50906) Oracle(49876) 应用服务器(43288) Spring(40812) 编程(39454) Windows(39381) JSP(37542) MySQL(37268) 数据结构(36423)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics