题目描述 Bamboo recently bought an owl for sending and receiving letters. Every owl will bring a letter to exactly one person, so normally Bamboo's owl wi ...
                            
                            
                                分类:
编程语言   时间:
2018-12-27 00:39:23   
                                阅读次数:
184
                             
                         
                    
                        
                            
                            
                                    This problem was recently asked by Google. Given a list of numbers and a number k, return whether any two numbers from the list add up to k. For examp ...
                            
                            
                                分类:
其他好文   时间:
2018-12-22 11:36:58   
                                阅读次数:
175
                             
                         
                    
                        
                            
                            
                                    LRU全称是Least Recently Used,即最近最久未使用的意思。如果一个数据在最近一段时间没有被访问到,那么在将来它被访问的可能性也很小。也就是说,当限定的空间已存满数据时,应当把最久没有被访问到的数据淘汰。 LFU(Least Frequently Used)最近最少使用算法。它是基于 ...
                            
                            
                                分类:
编程语言   时间:
2018-12-18 02:21:41   
                                阅读次数:
197
                             
                         
                    
                        
                            
                            
                                    redis-sentinel主从复制高可用 Redis-Sentinel Redis-Sentinel是redis官方推荐的高可用性解决方案,当用redis作master-slave的高可用时,如果master本身宕机,redis本身或者客户端都没有实现主从切换的功能。 而redis-sentine ...
                            
                            
                                分类:
其他好文   时间:
2018-12-12 13:50:25   
                                阅读次数:
232
                             
                         
                    
                        
                            
                            
                                Pasha has recently bought a new phone jPager and started adding his friends' phone numbers there. Each phone number consists of exactly n digits. Also ...
                            
                            
                                分类:
其他好文   时间:
2018-12-11 19:51:18   
                                阅读次数:
224
                             
                         
                    
                        
                            
                            
                                    Quite recently a creative student Lesha had a lecture on trees. After the lecture Lesha was inspired and came up with the tree of his own which he cal ...
                            
                            
                                分类:
其他好文   时间:
2018-12-01 20:05:22   
                                阅读次数:
229
                             
                         
                    
                        
                            
                            
                                Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put. get(key) - Get the ...
                            
                            
                                分类:
系统相关   时间:
2018-12-01 11:10:21   
                                阅读次数:
205
                             
                         
                    
                        
                            
                            
                                    题目: Little K is interested in BnB mode of the game Crazy Arcade recently. He found it important to preview the exploding time of bombs ,so he worked h ...
                            
                            
                                分类:
其他好文   时间:
2018-11-29 19:58:23   
                                阅读次数:
243
                             
                         
                    
                        
                            
                            
                                Recently one of my client has faced weird situation related to SQL Server Replication. Their main database goes down so they started running mirroring ...
                            
                            
                                分类:
其他好文   时间:
2018-11-29 12:22:16   
                                阅读次数:
176
                             
                         
                    
                        
                            
                            
                                    一. LruCache基本原理 LRU全称为Least Recently Used,即最近最少使用。由于缓存容量是有限的,当有新的数据需要加入缓存,但缓存的空闲空间不足的时候,如何移除原有的部分数据从而释放空间用来存放新的数据。 LRU算法就是当缓存空间满了的时候,将最近最少使用的数据从缓存空间中删 ...
                            
                            
                                分类:
系统相关   时间:
2018-11-28 22:24:23   
                                阅读次数:
275