跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[程序员] 又面了一家公司,想和大家讨论下面试的心理

发表于

先以下面这道题作为引子吧,说一下下面这段代码的问题,应该算比较简单的题了


void func(void **p) {
    p = (void **)malloc(512);
}
 
int main()
{
    void **p;
    func(p);
    strcpy((char *)p, "Hello");
    printf("%s", p);
    free((char*) p);
    return(0);
}

这道题我被面试官问的时候不是很敢说,总是觉得暗藏玄机,但是其实就是指针声明和内存分配的问题。其实还是基础不扎实,自己没有自信 qwq

再然后就是被问到 AVL 树和红黑树的区别,直接和面试官说不是很了解,然后面试官换了一种方式问关于 b 树的问题: 先讲了一下 b 树的数据结构,然后问我 b 树的查找时间复杂度。 这里其实我有去想 b 树的高度怎么求,想了比较长时间没想出来,面试官换了一道题问之后我想出来了,感觉我有点紧张....

再然后就是被问到 x 的 x 次方的导数怎么求,只能说不记得了,我只记得 x 的 2 次方怎么求 hh 。

还被问到一些经典的逻辑推理题,答得也不好。

这次面试不出所料应该也挂了。自我反思是面试脑子有时候会比较空白,这种设计逻辑推理的题容易想很久,大家碰到这种怎么克服?

另外就是,面试官查了下是个大神,看起来四五十了,思维感觉还是很敏捷,很是佩服。各位是怎么保持状态,保持思维活跃的?

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.