摘要:题目: Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given th
        
阅读全文
 
            
         
        
            
            
摘要:两个进程如果需要通信,最基本的前提是,能够唯一的标识一个进程。在本地通信中,可以通过PID唯一标识一个进程,但在网络中冲突几率大。 IP层的ip地址可以唯一标识主机,TCP层的协议和端口号唯一标识网络中的进程,所以可以利用ip地址+协议+端口号唯一标识网络中的进程。 socket是在应用层和传输层之
        
阅读全文
 
            
         
        
            
            
摘要:HTTP简介 1. HTTP协议是用于从服务器传输超文本到本地浏览器的传送协议。 2. HTTP基于TCP/IP通信协议进行传送输数据(HTML文件、图片文件、查询结果等)。 3. HTTP是一个属于应用层的面向对象的协议,由于其简捷、快速的方式,适用于分布式超媒体信息系统。 4. HTTP协议工作
        
阅读全文
 
            
         
        
            
            
摘要:问题: Given a binary tree Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set toN
        
阅读全文
 
            
         
        
            
            
摘要:问题: Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. For example: Given the below binary tree, Retu
        
阅读全文
 
            
         
        
            
            
摘要:问题: Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number. An example is the root-to-leaf path1->2->3whic
        
阅读全文
 
            
         
        
            
            
摘要:问题: Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the neares
        
阅读全文
 
            
         
        
            
            
摘要:问题: Given a binary tree, return the postorder traversal of its nodes' values. For example: Given binary tree{1,#,2,3}, return[3,2,1]. 递归方法: 非递归方法(利用栈)
        
阅读全文
 
            
         
        
            
            
摘要:问题: Given a binary tree, return the preorder traversal of its nodes' values. For example: Given binary tree{1,#,2,3}, return[1,2,3]. 递归方法: 非递归方法(利用栈):
        
阅读全文