Description: A boomerang is a set of 3 points that are all distinct and not in a straight line. Given a list of three points in the plane, return whet ...
                            
                            
                                分类:
其他好文   时间:
2019-08-29 13:26:50   
                                阅读次数:
78
                             
                         
                    
                        
                            
                            
                                    PAT B1015/A1062 Talent and Virtue 题目描述: About 900 years ago, a Chinese philosopher Sima Guang wrote a history book in which he talked about people's t ...
                            
                            
                                分类:
其他好文   时间:
2019-08-27 23:21:26   
                                阅读次数:
107
                             
                         
                    
                        
                            
                            
                                在应用程序需要连接外部库的情况下,linux默认对库的连接是使用动态库,在找不到动态库的情况下再选择静态库。使用方式为:gcc test.cpp -L. -ltestlib如果当前目录有两个库libtestlib.so libtestlib.a 则肯定是连接libtestlib.so。如果要指定为连 ...
                            
                            
                                分类:
其他好文   时间:
2019-08-27 10:53:29   
                                阅读次数:
77
                             
                         
                    
                        
                            
                            
                                    本文大致地介绍了IOC容器的初始化过程,只列出了比较重要的过程和代码,可以从中看出IOC容器执行的大致流程。 接下来的文章会更加深入剖析Bean容器如何解析xml,注册和初始化bean,以及如何获取bean实例等详细的过程。 转自:http://www.importnew.com/19243.htm ...
                            
                            
                                分类:
编程语言   时间:
2019-08-25 14:00:06   
                                阅读次数:
104
                             
                         
                    
                        
                            
                            
                                    算法题目: 以下来源:https://leetcode-cn.com/problems/contains-duplicate-ii 给定一个整数数组和一个整数 k,判断数组中是否存在两个不同的索引 i 和 j,使得 nums [i] = nums [j],并且 i 和 j 的差的绝对值最大为 k。  ...
                            
                            
                                分类:
编程语言   时间:
2019-08-25 13:46:21   
                                阅读次数:
88
                             
                         
                    
                        
                            
                            
                                    Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Example 2: Note:You may assume the string contains only  ...
                            
                            
                                分类:
其他好文   时间:
2019-08-24 09:59:55   
                                阅读次数:
90
                             
                         
                    
                        
                            
                            
                                Description: The set S originally contains numbers from 1 to n. But unfortunately, due to the data error, one of the numbers in the set got duplicated ...
                            
                            
                                分类:
其他好文   时间:
2019-08-23 19:27:17   
                                阅读次数:
79
                             
                         
                    
                        
                            
                            
                                遇到 contains,首先要从一条题目开始。 查找两个节点的最近的一个共同父节点,可以包括节点自身 查找父节点,那就是 parentNode,那如何知道其中一个节点的父节点是否包含另外一个节点呢?那就涉及到我的知识盲区了。问了一下对桌,口吐出一句 contains。一脸懵逼不要紧,MDN来一波。h ...
                            
                            
                                分类:
编程语言   时间:
2019-08-23 10:26:09   
                                阅读次数:
112
                             
                         
                    
                        
                            
                            
                                Description: A self-dividing number is a number that is divisible by every digit it contains. For example, 128 is a self-dividing number because 128 % ...
                            
                            
                                分类:
其他好文   时间:
2019-08-22 19:07:03   
                                阅读次数:
80
                             
                         
                    
                        
                            
                            
                                    一、前言 在Java中,工具类定义了一组公共方法,这篇文章将介绍Java中使用最频繁及最通用的Java工具类。以下工具类、方法按使用流行度排名,参考数据来源于Github上随机选取的5万个开源项目源码。 二、org.apache.commons.io.IOUtils closeQuietly:关闭一 ...
                            
                            
                                分类:
编程语言   时间:
2019-08-22 01:18:52   
                                阅读次数:
153