由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 问个题
相关主题
问个题: 找read-only array中duplicate的数这道题是选A 吗?
问问careerup书上的一道题:请教一道面试题
分享两道面试题--求教高手请教一道数据结构的设计题
还有两个题。问个题,用递归方法
这点 code 里,有问题吗问个题
google 一题问个题
问一道F家面试题真慫阿, Facebook 1st phone interview,
find, insert, delete, getRandom in O(1)The time complexity on finding the kth largest element in a
相关话题的讨论汇总
话题: element话题: list话题: add话题: delete话题: first
进入JobHunting版参与讨论
1 (共1页)
h****a
发帖数: 70
1
Consider a singly linked list, the time of which of the following operations
depends on the length of the list? (Exactly one answer is correct.)
1)Delete the last element of the list.
2)Delete the first element of the list.
3)Add an element after the last element of the list.
4)Add an element before the first element of the list.
5)Interchange the first two elements of the list.
m*********2
发帖数: 701
2
1
assuming there is a tail pointer

operations

【在 h****a 的大作中提到】
: Consider a singly linked list, the time of which of the following operations
: depends on the length of the list? (Exactly one answer is correct.)
: 1)Delete the last element of the list.
: 2)Delete the first element of the list.
: 3)Add an element after the last element of the list.
: 4)Add an element before the first element of the list.
: 5)Interchange the first two elements of the list.

1 (共1页)
进入JobHunting版参与讨论
相关主题
The time complexity on finding the kth largest element in a这点 code 里,有问题吗
问个题google 一题
问个题问一道F家面试题
问个题find, insert, delete, getRandom in O(1)
问个题: 找read-only array中duplicate的数这道题是选A 吗?
问问careerup书上的一道题:请教一道面试题
分享两道面试题--求教高手请教一道数据结构的设计题
还有两个题。问个题,用递归方法
相关话题的讨论汇总
话题: element话题: list话题: add话题: delete话题: first