- 35
- 0
- 约1.73万字
- 约 23页
- 2017-06-23 发布于河南
- 举报
常见算法笔试或面试题(国外英语资料)
常见算法笔试或面试题(国外英语资料)
Zhenjings tech blog
Form a literary circle
Common algorithms written or interview questions
2010-10-18 10:12 by Zhenjing, 4714 visits, fanchon, collection, editing
Problem 1: Is, it, a, loop?
Assume that wehave a head pointer to a link-list. Also assumethat we know the list is single-linked. Can you come up an algorithm to checkwhether this link list includes a loop by using O (n) time and O (1) space wheren is the length of the list Furthermore can you do? So with O (n) time and onlyone register?
Methods: use two pointers, start from scratch, move one node at a time, one fo
您可能关注的文档
最近下载
- 《喀斯特地貌》课件.ppt VIP
- 2025上海辅警面试题目及答案.doc VIP
- 2026年版-FOCUSPDCA降低骨科I类切口手术部位感染率CQI-新版课件.pdf
- AP300 D5-2S快速门操作手册.pdf VIP
- 基于模糊控制MPPT的太阳能充电控制器的设计.doc VIP
- 乳化液柱塞泵结构设计毕业设计说明书.doc VIP
- 应急通信保障应急预案.docx VIP
- 年产2000吨年邻氯苯腈、1200吨年 2,6-二氯-4-三氟甲基苯胺、1000吨年三嗪酰胺、300吨年 2,6-二氟苯甲酰胺、2000吨年 2-氯-5-氯甲基噻唑、1000吨年咪鲜胺项目环境影响报告.pdf
- 2023年安徽合肥高新区社区工作者招聘笔试真题.docx VIP
- 国家通信保障应急预案.docx VIP
原创力文档

文档评论(0)