注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
第一次发面经,码字码了好久,求大米
Debug
1. ReverseArray,翻转数组
arr[len-1]改成arr[len-i-1], 以及把for循环里的 len += 1去掉
2. countOccurence, 返回value在array中出现的次数
while里面最后加上 i++
3. sortArray, 将数组降序排列
判断条件里的大于换成小于
4. checkGrade,判断输入的数在什么范围
|| 改成 &&
5. replaceValues, 若array长度为奇数,将array全替换为1,若为偶数,替换为0
for循环条件里的 i<=len, j<=len改成 i<len, j<len
6. countDigits, 求num%count,count为num的位数
程序里先对num求完count后直接返回num%count,而此时num已经变为0了
7. PrintPattern,n为3时输出
11
1111
111111
for循环没加大括号
Logic
1. QPS:TSV :: IHK : (LKN)
2. ADBS:EHFG :: ILJK : (MPNO)
3. KML, PRQ, NPQ, TVU
4. N3K, T4P, W5S, Q2O
5. ABIJ, DEHI, MNQR, STWX
6. EAGLE coded to FZHKF, THANKS coded to (UGBMLR)
您好! 本帖隐藏的内容需要积分高于 188 才可浏览 您当前积分为 0。 使用VIP即刻解锁阅读权限或查看其他获取积分的方式 游客,您好! 本帖隐藏的内容需要积分高于 188 才可浏览 您当前积分为 0。 VIP即刻解锁阅读权限 或 查看其他获取积分的方式 Unlock interview details and practice with AI Popular Interview Questions from Top Companies
) have a grade A certified unit for its products
6) not have any legal dispute related to land or forest, pending against them
若除了2都满足,但有第三个正在testing的产品,refer to chief officer
若除了5都满足,但有solar certification, refer to director
19. US based company, sell batteries, has Environmental clearance certificate.
currently produce two solar products, both grade A. not use Synthetic polymers.
no legal case pending.
选的不邀请
20. headquarter in Texas, sell solar products including bulbs, cookers and heaters.
not made of synthetic polymers. has Environment Clearance certificate. Products are grade A.
not have any legal case pending
选的应该邀请
Coding
Two sum那题,返回distinct pairs个数
|