• 大小: 181KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-16
  • 语言: 其他
  • 标签:

资源简介

创昂智能科技有线公司,是一家做自动驾驶的初创形企业。附件是去面试的面试题,五道算法题。

资源截图

代码片段和文件信息


#include 
#include 
#include 

using namespace std;

void function(int array[] int max int length)
{
    int data = 0;
    for(int i = 0; i < max; i++)
    {
        for(int j = 0; j < (max - i - 1); j++)
        {
            if(array[j] < array[j + 1])
            {
                data = array[j];
                array[j] = array[j + 1];
                array[j + 1] = data;
            }
        }
    }

    for(int i = 0; i < length; i++)
    {
        cout << array[i] << endl;
    }
}

int main(int argc char **argv)
{
    cout<< “hello“ << endl;
    int array[10] = {24569871310};
    function(array105);

    return 0;
}



 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         719  2019-01-19 13:28  编程题\main1.cpp
     文件         887  2019-01-19 14:07  编程题\main2.cpp
     文件        2061  2019-01-19 15:59  编程题\main3.cpp
     文件      207529  2019-01-19 15:54  编程题\招聘试题_cc++软件工程师(3).docx
     目录           0  2019-01-19 15:59  编程题\

评论

共有 条评论

相关资源