码迷,mamicode.com
首页 >  
搜索关键字:solution upgrade    ( 13024个结果
LeetCode Set Matrix Zeroes
class Solution {public: void setZeroes(vector > &matrix) { int rows = matrix.size(); int cols = matrix[0].size(); bool...
分类:其他好文   时间:2014-07-19 00:10:42    阅读次数:177
LeetCode "Search Insert Position"
A simple 1D searching problem. Binary search of course.But.. STL has already done it for you:class Solution {public: int searchInsert(int A[], int ...
分类:其他好文   时间:2014-07-18 18:35:41    阅读次数:205
LeetCode Remove Nth Node From End of List
class Solution {public: ListNode *removeNthFromEnd(ListNode *head, int n) { if (head == NULL) return NULL; ListNode* pre = NULL; ...
分类:其他好文   时间:2014-07-18 18:24:55    阅读次数:209
LeetCode "Unique Binary Search Trees"
Another recursion-style problem.1. Each count of sub-solution with a certain root should contribute to final count2. With a certain root, the num of l...
分类:其他好文   时间:2014-07-18 18:18:01    阅读次数:187
leetcode 字符串分割对称
1 public class Solution { 2 public List> partition(String s) { 3 int len=s.length(); 4 boolean dp[][]=new boolean[len][len]; 5...
分类:其他好文   时间:2014-07-18 17:29:22    阅读次数:232
LeetCode "Climbing Stairs"
The best way to learn DP from DFS! Nice problem.My intuition is that it can be solved by DFS:class Solution {public: int climbStairs(int n) { ...
分类:其他好文   时间:2014-07-18 17:24:53    阅读次数:188
LeetCode "Reorder List"
Not very hard to figure out the solution: splitting the list into 2 halves; reverse the 2nd half and interleave the two halves.But it takes some time ...
分类:其他好文   时间:2014-07-18 14:35:09    阅读次数:214
QlikView实现部分载入数据的功能(Partial Load)
问题背景:一直非常想不通,公司花了N多钱请了一帮QlikView的Consultant做出来的solution居然没有涉及Reload的部分,以至于每次刷新数据都须要刷新整个Data Model,之前和部门同事讨论的时候我还信誓旦旦的说QlikView就仅仅能这样了,找不到方法仅仅将新数据刷新到Da...
分类:其他好文   时间:2014-07-18 14:08:04    阅读次数:265
leetcode merge-sorted-array/
public class Solution { public void merge(int A[], int m, int B[], int n) { int a=m-1; int b=n-1; int index=m+n-1; whil...
分类:其他好文   时间:2014-07-18 12:06:55    阅读次数:147
Hive ERROR: Out of memory due to hash maps used in map-side aggregation .
当hive在执行大数据量的统计查询语句时,经常会出现下面OOM错误,具体错误提示如下:Possible error: Out of memory due to hash maps used in map-side aggregation.Solution: Currently hive.map.ag...
分类:其他好文   时间:2014-07-18 11:37:23    阅读次数:305
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!