几道面试题

简介: 面试者1:第一轮1. Implement a LinkedList that can add and delete nodes.第二轮2. Given a sorted integer array, remove duplicate items, return the count of distinct items.   面试者2:第一轮1.将一个整数转换成二进值数值后1的个数。

面试者1:
第一轮
1. Implement a LinkedList that can add and delete nodes.
第二轮
2. Given a sorted integer array, remove duplicate items, return the count of distinct items.

 

面试者2:
第一轮
1.将一个整数转换成二进值数值后1的个数。例如0->00000000返回0
5->00000101返回2
2.压缩算法,将一个数组中重复的数字删除,并返回新数组的长度
3.multithread中critical session和mutex的区别
第二轮
1.CompactArray
删除一个有序数组中所有重复的数字,例如1 1 1 2 3 4 5 5 6 输出1 2 3 4 5 6

2.NumberOfTrue
返回一个整形数字对应的二进制数字中的1的个数,例如:0(00000000) 输出0
2(00000010)输出1
5(00000101)输出2


面试者3:
1. Write out an implementation of Linked List using C#, containing the following actions: add, remove; containing the following properties: count.
 
2. Assume you have two arrays with integer elements, a[] and b[]. array a has m elements, array b has n elements, array a has enough spaces to contain all elements that from array a and array b, write a function to merge the array b to array a, as well as removing the duplicated elements from array b to array a. using the following prototype. array a and array b are sorted ascending.
 
int MergeArray(int a[], int m, int b[], int n);
 
3. Write a function to remove all duplicates in a single array which is sorted ascending. using the following prototype.
 
void CompactArray(int a[], int length)
 
4. Given an integer array, find out the 2 maximum numbers from this array.
 
NOTE: all implementations to the questions need to be optimized mostly.


面试题目
what do you do in your team
how do you like your work,
design and refactoring which do you like
1.一个textfile,里面有很多字符。使用;分割每个部分,写代码读取这个文件,实现Addition, Modification, Deletion操作,并且存储到文件中
例如 aa;bb;增加一段(cc)变成aa;bb;cc;
2.select the 41st top record of a table
3. diffenent between viewstate and session

目录
相关文章
|
前端开发 JavaScript
CSS实现禁用状态,样式设置以及不可点击事件的行为
CSS实现禁用状态,样式设置以及不可点击事件的行为
4028 0
|
新零售 城市大脑 分布式计算
阿里云2019北京峰会之我见(商业篇)
整场大会听下来,我用两个字来总结那就是”共赢“。 希望大家都能赢!
4655 0
|
8月前
|
人工智能 边缘计算 自然语言处理
普通电脑也能跑AI:10个8GB内存的小型本地LLM模型推荐
随着模型量化技术的发展,大语言模型(LLM)如今可在低配置设备上高效运行。本文介绍本地部署LLM的核心技术、主流工具及十大轻量级模型,探讨如何在8GB内存环境下实现高性能AI推理,涵盖数据隐私、成本控制与部署灵活性等优势。
7859 0
普通电脑也能跑AI:10个8GB内存的小型本地LLM模型推荐
|
7月前
|
存储 JSON 算法
Python集合:高效处理无序唯一数据的利器
Python集合是一种高效的数据结构,具备自动去重、快速成员检测和无序性等特点,适用于数据去重、集合运算和性能优化等场景。本文通过实例详解其用法与技巧。
216 0
|
存储 弹性计算 缓存
阿里云共享型、计算型、通用型、内存型云服务器最新价格表
阿里云服务器租用价格是多少?2023年,阿里云继续推出轻量应用服务器与共享型、计算型、通用型、内存型云服务器优惠,其中轻量应用服务器268元/年,共享型云服务器低至0.21元/天,计算型云服务器最低52.20元/3个月起,通用算力型u1云服务器45.84元/3个月起,通用型云服务器63.30元/3个月起,内存型云服务器78.90元/3个月起,详细配置及价格表见下文。
阿里云共享型、计算型、通用型、内存型云服务器最新价格表
|
存储 Web App开发 编解码
加解密,加签、验签也就这肥事
加解密,加签、验签也就这肥事
2287 0
加解密,加签、验签也就这肥事
|
决策智能 Windows
运筹优化学习01:Lingo入门与错误列表分析(二)
运筹优化学习01:Lingo入门与错误列表分析
运筹优化学习01:Lingo入门与错误列表分析(二)
|
NoSQL 算法 数据管理
arcgis中栅格矢量计算技巧收藏
arcgis中栅格矢量计算技巧收藏
|
Web App开发 前端开发 JavaScript
flutter Web打包
1. 创建web文件夹 输入下面的命令创建web文件
1175 0
flutter Web打包

热门文章

最新文章