问题: 二分查找,给定一个已排序的数组,和一个目标值target 在该数组中找到target的index返回,若没找到,则返回-1。 Example 1: Input: nums = [-1,0,3,5,9,12], target = 9 Output: 4 Explanation: 9 exist ...
                            
                            
                                分类:
其他好文   时间:
2020-08-12 15:53:00   
                                阅读次数:
60
                             
                    
                        
                            
                            
                                错误形势 在linux上使用less命令查看文件的时候,服务器会提示如下:"catalina.out" may be a binary file. See it anyway? [root@test logs]# less catalina.out "catalina.out" may be a b ...
                            
                            
                                分类:
系统相关   时间:
2020-08-11 15:52:29   
                                阅读次数:
179
                             
                    
                        
                            
                            
                                
                    # sudo pip3.5 install docker-compose 安装docker-compose的时候报错如下: no previously-included directories found matching 'docs/_build' warning: no previously-i ...
                            
                            
                                分类:
系统相关   时间:
2020-08-10 14:26:22   
                                阅读次数:
180
                             
                    
                        
                            
                            
                                tp5安装第三方的cms后台 总是遇到File not found的问题 在var/log/nginx/error.log中发现是这个错误 [error] 3926#0: *33481 FastCGI sent in stderr: "Primary script unknown" while re ...
                            
                            
                                分类:
其他好文   时间:
2020-08-09 14:22:45   
                                阅读次数:
82
                             
                    
                        
                            
                            
                                
                    99. 恢复二叉搜索树 题目来源:力扣(LeetCode)https://leetcode-cn.com/problems/recover-binary-search-tree 题目 二叉搜索树中的两个节点被错误地交换。 请在不改变其结构的情况下,恢复这棵树。 示例 1: 输入: [1,3,null ...
                            
                            
                                分类:
编程语言   时间:
2020-08-08 21:20:59   
                                阅读次数:
83
                             
                    
                        
                            
                            
                                Vertical Order Traversal of a Binary Tree (M) 题目 Given a binary tree, return the vertical order traversal of its nodes values. For each node at positi ...
                            
                            
                                分类:
其他好文   时间:
2020-08-08 17:30:42   
                                阅读次数:
51
                             
                    
                        
                            
                            
                                
                    1. 通过header()方法来实现, 最简单的方法,而且对php的版本没什么限制 <?php header('HTTP/1.1 404 Not Found'); header("status: 404 Not Found"); ?> 当服务器设置了404页面后,访问该php就会自动返回404状态及 ...
                            
                            
                                分类:
Web程序   时间:
2020-08-07 18:04:21   
                                阅读次数:
91
                             
                    
                        
                            
                            
                                题目描述: 给定一个二叉树,返回它的中序 遍历。 输入: [1,null,2,3] 1 \ 2 / 3 输出: [1,3,2] //go //* Definition for a binary tree node. type TreeNode struct { Val int Left *TreeN ...
                            
                            
                                分类:
其他好文   时间:
2020-08-06 09:31:39   
                                阅读次数:
66
                             
                    
                        
                            
                            
                                源管理 yarn config get registry yarn config set registry https://registry.npm.taobao.org -g yarn config set sass_binary_site http://cdn.npm.taobao.org/di ...
                            
                            
                                分类:
其他好文   时间:
2020-08-05 19:45:18   
                                阅读次数:
79