【2023校招】厦门极致互动研发岗笔试AK

极致游戏的选择题还是比较丰富的,有逻辑题、算法题、编程语言题、计算机基础题...外加三道算法题,不够熟悉的话时间还是比较紧的,题量相对于时间来说,让人感觉比较充实。

T1-最大公共前缀

题意

大概就是给定两个字符串,要求输出它们的最大公共子串,没有就输出为空。

T2-补全函数类

题意

给定主要函数代码,要求补全class MyQueue类,编写代码实现4个函数功能。

AC_Code

#include <stack>
#include <vector>
#include <iostream>
#include <algorithm>

using namespace std;

typedef std::string String;

class MyQueue {
    stack<int> stIn;
    stack<int> stOut;
public:
    MyQueue() {
        
    }
    void push(int x) {
        stIn.push(x);
    }
    int pop() {
        if(stOut.empt

猜你喜欢

转载自blog.csdn.net/Luoxiaobaia/article/details/126922860