华为od 面试题及流程 (前后端)

本人已过,为各位大哥试试水、主要考逻辑算法

1.华为od介绍

简单的来说 : 对应相同级别,工资相同,但没有华为股份。可申请转为正式员工,需要考核优秀。 报名:招聘软件上轻松报名(不看中学历)

2.面试流程

①在线上机考试,3题400分,150分通过

第1,2题为普通题100分,第3题为中等题 200分 可选择任意语言: 如果第一题100分,如果测试用例通过80%,则这一题为100 * 80% = 80分, 可通过 “点击测试按钮” 算自己的分数 考前可在这练习: 和考试模式相同:如下


②性格测试,50题

看着选好一点的


③技术面试 - 远程面试第一轮

1.先问一些经典面试题(前端) 2. 做两个算法题目 ==>面试题可以答的不好,题目写不出来就挂了

题1:var a = (5).plus(3).minus(6);   为 2 相当于(5+3-6=2)
Number.prototype.plus =  function(num){
          
     return this + num;  }
Number.prototype.minus = function(num){
          
     return this - num;  }
var a = (5).plus(3).minus(6);

题2:编写函数,计算输入中单词的出现次数。 
Ⅰ按次数降序输出,
Ⅱ相同次数的按字母顺序升序排序。
New to Python or choosing between Python 2 and Python 3? Read Python 2 or Python 3
正确结果为:
Python : 5
2 : 2
or : 2
3 : 1
3? : 1
New : 1
Read : 1
and : 1
between : 1
choosing : 1
to : 1
const str = New to Python or choosing between Python 2 and Python 3? Read Python 2 or Python 3
const arr = [ ]  
str.split( ).forEach(item=>{
          
   
    let bool = false
    arr.forEach((item2,index) => {
          
   
        if(item2.key === item){
          
   
            bool=true;
            arr[index].value += 1;
        }
    })
    if(!bool){
          
   
         arr.push({
          
   key:item,value:1});
    }
})
arr.sort((a,b)=>{
          
   
    if(a.value===b.value){
          
   
        if(a.key>b.key){
          
   
            return  1;
        }else{
          
   
            return -1;
        }
    }else{
          
   
        return b.value-a.value
    }
})
console.log(arr);

④技术面试 - 远程面试第二轮

1.先问一些经典面试题(前端) 2. 做一个算法题目

【报数游戏】100个人围成一圈,每个人有一个编码,编号从1开始到100。他们从1开始依次报数,报到为M的人自动退出圈圈,
然后下一个人接着从1开始报数,直到剩余的人数小于M。请问最后剩余的人在原先的编号为多少?
输入描述:输入一个整数参数M
输出描述:如果输入参数M小于等于1或者大于等于100,输出“ERROR!”;否则按照原先的编号从小到大的顺序,以英文逗号分割输出编号字符串
示例1:
输入
输出
3
58,91
let num = 3;
        let arr = [] ;
        for (let index = 0; index < 100; index++) {
          
     //模拟100个人
           arr.push(index+1); 
        }

        let item = 1;   //此时报道的数  初始从1开始
        function baoshu(num,arr,item){
          
   
            const newArr = []
            for (let index = 0; index < arr.length; index++) {
          
   
                if(item !== num ){
          
   
                    newArr.push(arr[index]);
                    item++;
                }else{
          
   
                    item = 1;
                }    
            }
          
            if(newArr.length < num){
          
   
                console.log(newArr);
            }else{
          
   
                baoshu(num,newArr,item);
            }
        }
        baoshu(num,arr,item)

⑤综合面试 HR、大领导沟通 HR : 主要是问问情况,进行个背调 , 和期望薪资。 领导:主要看看综合能力


⑥发offer

经验分享 程序员 微信小程序 职场和发展