73. 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. Example 1: Example 2: Follow up: A ...
                            
                            
                                分类:
其他好文   时间:
2018-05-23 02:12:30   
                                阅读次数:
171
                             
                    
                        
                            
                            
                                    题目:矩阵置0 难度:Easy 题目内容: Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place. Given a m x n matrix, if an elemen ...
                            
                            
                                分类:
编程语言   时间:
2018-05-21 01:04:34   
                                阅读次数:
236
                             
                    
                        
                            
                            
                                Push Dominoes There are N dominoes in a line, and we place each domino vertically upright. In the beginning, we simultaneously push some of the domino ...
                            
                            
                                分类:
其他好文   时间:
2018-05-20 23:58:36   
                                阅读次数:
453
                             
                    
                        
                            
                            
                                    问题描述 有下面这样的一个网格棋盘,a,b,c,d表示了对应边长度,也就是对应格子数。 要在这个棋盘上放K个相互不攻击的车,也就是这K个车没有两个车在同一行,也没有两个车在同一列,问有多少种方案。同样只需要输出答案mod 100003后的结果。 输入格式 输入文件place.in的第1行为有5个非负 ...
                            
                            
                                分类:
其他好文   时间:
2018-05-08 14:40:03   
                                阅读次数:
179
                             
                    
                        
                            
                            
                                Georgia and Bob decide to play a self-invented game. They draw a row of grids on paper, number the grids from left to right by 1, 2, 3, ..., and place ...
                            
                            
                                分类:
其他好文   时间:
2018-05-07 13:24:52   
                                阅读次数:
183
                             
                    
                        
                            
                            
                                    本篇是in place algorithm的学习笔记。目前学习的是in place merge与in place martrix transposition这两个算法。 1.in place merge 论文链接:Practical in-place merging 论文讨论的是如何O(n)时间复杂 ...
                            
                            
                                分类:
其他好文   时间:
2018-04-30 15:34:58   
                                阅读次数:
118
                             
                    
                        
                            
                            
                                    Zsh 1. Place the completion script in your /path/to/zsh/completion (typically ~/.zsh/completion/): 下载自动完成文件 2. Include the directory in your $fpath by ...
                            
                            
                                分类:
其他好文   时间:
2018-04-30 12:04:20   
                                阅读次数:
739
                             
                    
                        
                            
                            
                                    1、gcc 和 arm-linux-gcc的常用选项 gcc 的使用方法: gcc 【选项】 文件名 gcc常用选项: -v:查看gcc 编译器的版本,显示gcc执行时的详细过程 -o < file > Place the output into < file > 指定输出文件名为file,这个名称 ...
                            
                            
                                分类:
其他好文   时间:
2018-04-29 20:00:09   
                                阅读次数:
188
                             
                    
                        
                            
                            
                                    Given an array and a value, remove all instances of that value in place and return the new length. The order of elements can be changed. It doesn’t ma ...
                            
                            
                                分类:
其他好文   时间:
2018-04-26 18:25:16   
                                阅读次数:
140
                             
                    
                        
                            
                            
                                javascript:a.代码:vardata={‘name‘:‘lee‘,‘place‘:‘wuhan‘}varstr="Hello{{name}},Welcometo{{place}}!";varres=str.replace(/{{([\s\S]+?)}}/g,function(param1,param2){varindex=param2returndata[index]});console
                            
                            
                                分类:
编程语言   时间:
2018-04-17 11:53:39   
                                阅读次数:
132