网易互娱面经第二弹

emmm,怎么说呢,这和我想象的二面不大一样啊。
没问图形学,没问C++,我还一通背啊!
问了一个项目,然后有哪些技术难点,如何处理的?
然后问了游戏开发的小东西,AABB包围盒如何判断相交与分离?如何判断一个点在多面体(多边形)内?如果是凹多边形怎么办?
平常遇到问题是怎么解决的?
你还有其他什么问题吗?我说没有,然后“舔”了一波网易的游戏(肯定地位,赞扬文化),并表达了自己强烈想为公司“战今生”的愿望。
四十分钟,真准时~(面试官那个网络真的是,时好时坏)
网易爸爸能不能给个机会,我豁出去不签唯一一个offer等你一波,想给自己打气还是心里没底,算了,等着吧,反正都这么糟糕了,无非就是坏与更坏罢了。

#面经##校招##C++工程师#
全部评论
我都泡在池子里十几天了
1 回复 分享
发布于 2020-11-03 18:51
校友好,校友加油
1 回复 分享
发布于 2020-11-03 19:57
那个点在凹多面体里怎么解决的丫?
1 回复 分享
发布于 2020-11-05 21:34
多深的池子啊,还在面试
点赞 回复 分享
发布于 2020-11-03 17:00
楼主你好,请问你是实习、校招还是社招?岗位是什么?开发的话,是Java方向还是C++方向?或者其他语言方向~
点赞 回复 分享
发布于 2020-11-03 17:05
听有的老铁说,问了HR说是hc已经发完了,他面试都过了但是没轮到😭
点赞 回复 分享
发布于 2020-11-03 18:53
看来是凉凉了,有点难过o(╥﹏╥)o
点赞 回复 分享
发布于 2020-11-11 10:30

相关推荐

头像
03-07 20:59
已编辑
华中科技大学 Java
1,第一题,可以发现每个数只有与不一样的数交换才有贡献,比第i位为1,i < j,只有s[j]为0才可以交换,统计一下前/后缀0/1的个数就可以了,然后加一下贡献```#include <iostream>#include <vector>using namespace std;int main() {    string s;    while (cin >> s) {        long long res = 1;        vector<int> a0(s.size() + 1, 0), a1(s.size() + 1, 0);        for (int i = s.size() - 1; i >= 0; i --) {            if (s[i] == '0') {                a0[i] = a0[i + 1] + 1;                a1[i] = a1[i + 1];                res += 1ll * a1[i];            } else {                a0[i] = a0[i + 1];                a1[i] = a1[i + 1] + 1;                res += 1ll * a0[i];            }        }        cout << res << '\n';    }}// 64 位输出请用 printf("%lld")```2,可以hash一下每个图,每一行有多少个?每一行的值就是多少,11111代表五行每行都只有一个问号,后面就容易不少了。#include <iostream>#include <string>using namespace std;int main() {    int n;    cin >> n;    while (n --) {        string map[6];        int hash = 0;        for (int i = 0; i < 5; i ++) {            cin >> map[i];            int count = 0;            for (int j = 0; j < 5; j ++) {                if (map[i][j] != '#') count ++;            }            hash = hash * 10 + count;         }        // cout << "hash:" << hash <<'\n';        if (hash == 32223) {            cout <<0;        } else if (hash == 11111) {            cout << 1;        } else if (hash == 22311) {            cout << 4;        } else if (hash == 31111) {            cout << 7;        } else if (hash == 31323) {            cout << 6;        } else if (hash == 32323) {            cout << 8;        } else if (hash == 32313) {            cout << 9;        } else {            if (map[1][3] != '#') {                if (map[3][1] != '#') cout << 2;                else cout << 3;            } else {                cout << 5;            }        }    }    }// 64 位输出请用 printf("%lld")3,字典树比较模板的题,可以学一下字典树怎么写的,然后在字典树路径下贪心找最优解#牛客AI配图神器# #include <iostream>using namespace std;const int N = 2e5 + 10;int tr[N * 60][2], cnt[N * 60][2], ind;void insert(int x, int mod) {    int p = 0;    for (int i = 31; i >= 0; i--) {        int v = x >> i & 1;        if (tr[p][v] == 0) tr[p][v] = ++ind;        cnt[p][v] += mod;        p = tr[p][v];    }}int getMaxXor(int x) {    int res = 0, p = 0;    for (int i = 31; i >= 0 ; i --) {        int v = x >> i & 1;        if (cnt[p][!v]) {            p = tr[p][!v];            res += 1 << i;        } else {            p = tr[p][v];        }    }    return res;}signed main() {    int n;    cin >> n;    int cnt = 0;    while (n --) {        int a, b;        cin >> a >> b;        if (a == 1) {            cnt ++;            insert(b, 1);        } else if (a == 2) {            cnt --;            insert(b, -1);        } else {            if (cnt == 0)             cout << -1 << '\n';            else cout << getMaxXor(b) << '\n';        }    }}// 64 位输出请用 printf("%lld")
在西伯利亚种土豆:这第二题直接暴力if else结果出bug了,调了半小时眼睛都快瞎了。还是大佬这方法简单
投递饿了么等公司9个岗位
点赞 评论 收藏
分享
评论
4
13
分享

创作者周榜

更多
牛客网
牛客企业服务