Coder Social home page Coder Social logo

notfound9 / interviewguide Goto Github PK

View Code? Open in Web Editor NEW
3.9K 88.0 687.0 60.76 MB

推荐免费ChatGPT网站:https://www.lintcode.com/chat-gpt?utm_source=tf-github-NotFound 点此领取7天VIP会员:https://www.lintcode.com/vip/activity/z1qgMH 《大厂面试指北》——包括Java基础、JVM、数据库、mysql、redis、计算机网络、算法、数据结构、操作系统、设计模式、系统设计、框架原理。

Home Page: https://juejin.cn/user/430664288569453

Java 100.00%
interview-questions java redis star jvm mysql interview algorithms spring backend leetcode leetcode-java data-structures interview-practice interviews system-design interview-preparation guide code-interview java-interview

interviewguide's Issues

没有按需加载

pragma mark --private Method--初始化子控制器

-(void)setupChildController {
for (NSInteger i = 0; i<self.currentChannelsArray.count; i++) {
ContentTableViewController *viewController = [[ContentTableViewController alloc] init];
viewController.channelName = self.currentChannelsArray[i];
viewController.channelId = self.channelsUrlDictionary[viewController.channelName];
[self addChildViewController:viewController];
}
}

在这一步就获取了所有数据 。。。。不太好吧

关于图片的显示

楼主,你的项目很棒,向你请教一个问题,这里面的图片显示你是怎么处理的呢?比如遇到不规则的图片,那几种显示图片的方式并不能完全满足要求,如果进行裁剪,图片就会变模糊.你是怎么处理的呢?

问题

楼主 下载了你的源码 提示 ld: library not found for -lAFNetworking
clang: error: linker command failed with exit code 1 (use -v to see invocation)

单例模式里面第一版DCL代码中的注释不太对

public class Singleton {               
    private static Singleton instance;              
    public static Singleton getInstance() {              
        if (instance == null) {                        
            synchronized (Singleton.class) { 
                if (instance == null) { //双重检查存在的一样在于可能会有多个线程进入第一个判断,然后竞争同步锁,线程A得到了同步锁,创建了一个Singleton实例,赋值给instance,然后释放同步锁,此时线程B获得同步锁,又会创建一个Singleton实例,造成初始化覆盖。                
                    instance = new Singleton();        
                }
            }                                   
        }                                      
        return instance;                        
    }                                                 
}                  

被synchronized修饰的语句块有Happens-Before规则,线程B在线程A之后进入同步块一定可以看到instance!=null

Redis过期key是怎么样清理的?中LRU算法 PS部分表述问题

Redis过期key是怎么样清理的?

  • LRU算法 中 PS

PS:使用单向链表能不能实现呢,也可以,单向链表的节点虽然获取不到pre节点的信息,但是可以将下一个节点的key和value设置在当前节点上,然后把当前节点的next指针指向下下个节点,这样相当于把下一个节点删除了

感觉应该是把当前节点删除了,因为下一个节点的 key 和 value 都被赋值到当前节点上了。表面上删除下一个节点,实际上删除的是当前节点。因为当前节点的内容丢失了。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.