拼多多一面

周六的面试
上来先问一天12小时一周6天顶不顶得住
然后就是乱序八股
完全是想问啥跳啥
上一个问题还在Redis
下一个HTTP 然后JVM
最后做个多线程打印
50分钟 差点给我cpu干烧了

4.10已凉😢
全部评论
面试官在暗示你别来
11 回复 分享
发布于 2023-04-09 22:57 台湾
哈哈哈哈哈,pdd面试官是这样的倨傲而且令人觉得无语,总觉得自己很牛
2 回复 分享
发布于 2023-04-16 00:18 安徽
兄弟,你面的是什么岗位啊
1 回复 分享
发布于 2023-06-15 23:35 湖北
多线程打印是什么意思?朋友能不能详细说一下
1 回复 分享
发布于 2023-04-08 17:46 上海
好家伙实习生也这么肝吗
1 回复 分享
发布于 2023-04-08 17:45 上海
没毛病,一半人这12小时顶不住,先面试在告诉你,结果你不接受,浪费大家时间和口水
点赞 回复 分享
发布于 2023-04-20 00:40 广东

相关推荐

04-01 10:06
武汉大学 C++
问问大佬们(1)class ZeroEvenOdd {    private int n;    ReentrantLock lock = new ReentrantLock(true);    private int x = 1;    private boolean isZero = true;    private Condition condition = lock.newCondition();    public ZeroEvenOdd(int n) {                this.n = n;    }    // printNumber.accept(x) outputs "x", where x is an integer.    public void zero(IntConsumer printNumber) throws InterruptedException {        while(x <= n){                    lock.lock();        if(isZero&&x <= n){            printNumber.accept(0);            isZero = false;            condition.signalAll();        }else{            condition.await();        }        lock.unlock();        }    }    public void even(IntConsumer printNumber) throws InterruptedException {        while(x <= n){        lock.lock();        if(!isZero && x%2 == 0){            printNumber.accept(x);            x++;            isZero = true;            condition.signalAll();        }else{            condition.await();        }        lock.unlock();        }           }    public void odd(IntConsumer printNumber) throws InterruptedException {        while(x <= n){        lock.lock();        if(!isZero && x%2 == 1){            printNumber.accept(x);            x++;            isZero = true;            condition.signalAll();        }else{            condition.await();        }        lock.unlock();        }        }}(2)class ZeroEvenOdd {    private final int n;    private int x = 1;    // true: 打印0  false: 不打印0    private boolean isZero = true;    public ZeroEvenOdd(int n) {        this.n = n;    }    public void zero(IntConsumer printNumber) throws InterruptedException {        while (x <= n) {            synchronized (this) {                if (isZero) {                    printNumber.accept(0);                    isZero = false;                    this.notifyAll();                } else {                    this.wait();                }            }        }    }    public void even(IntConsumer printNumber) throws InterruptedException {        while (x <= n) {            synchronized (this) {                if (x % 2 == 0 && !isZero) {                    printNumber.accept(x);                    isZero = true;                    x++;                    this.notifyAll();                } else {                    this.wait();                }            }        }    }    public void odd(IntConsumer printNumber) throws InterruptedException {        while (x <= n) {            synchronized (this) {                if (x % 2 != 0 && !isZero) {                    printNumber.accept(x);                    isZero = true;                    x++;                    this.notifyAll();                } else {                    this.wait();                }            }        }    }}为什么(1)代码最后可能多输出一个0。(2)代码不会
点赞 评论 收藏
分享
评论
6
21
分享

创作者周榜

更多
牛客网
牛客企业服务