由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 问几道面试题
相关主题
请教一个面试题问道看到的面试题
Ask a google interview question(2)问一道算法题
A Google Problem (2)Leet Code, three sum closest
请教几个面试题请教一个面试题
Amazon 2nd Phone Interview向各位大侠请教几道面试题的思路
Zenefits面经(已挂)几道面试题
T problem大家看看这几道亚麻面试题怎么做?
问一个L的题目恭喜几道面试题
相关话题的讨论汇总
话题: given话题: arithmetic话题: find话题: repeat
进入JobHunting版参与讨论
1 (共1页)
h*********3
发帖数: 111
1
career cup 上的.
* Given an array of integers A, give an algorithm to find the longest
Arithmetic progression in it, i.e find a sequence i1 < i2 < … < ik, such
that
A[i1], A[i2], …, A[ik] forms an arithmetic progression, and k is the
largest possible. The sequence S1, S2, …, Sk is called an arithmetic
progression if
Sj+1 – Sj is a constant
* Given a list of points in the plane, write a program that outputs each
point along with the three other points that are closest to it. These three
points ordered by distance.
* Given N students, find the number of ways the students could be ranked.
Also one or more students can have ties and can have the same ranks.
* Given an array of integers where some numbers repeat 1 time, some numbers
repeat 2 times and only one number repeats 3 times, how do you find the
number that repeat 3 times.
g*********s
发帖数: 1782
2
career cup more and more bt now...

three

【在 h*********3 的大作中提到】
: career cup 上的.
: * Given an array of integers A, give an algorithm to find the longest
: Arithmetic progression in it, i.e find a sequence i1 < i2 < … < ik, such
: that
: A[i1], A[i2], …, A[ik] forms an arithmetic progression, and k is the
: largest possible. The sequence S1, S2, …, Sk is called an arithmetic
: progression if
: Sj+1 – Sj is a constant
: * Given a list of points in the plane, write a program that outputs each
: point along with the three other points that are closest to it. These three

1 (共1页)
进入JobHunting版参与讨论
相关主题
恭喜几道面试题Amazon 2nd Phone Interview
请教几道对我来说高深的面试题Zenefits面经(已挂)
Longest Consecutive Sequence 问题释疑T problem
看一道面试题问一个L的题目
请教一个面试题问道看到的面试题
Ask a google interview question(2)问一道算法题
A Google Problem (2)Leet Code, three sum closest
请教几个面试题请教一个面试题
相关话题的讨论汇总
话题: given话题: arithmetic话题: find话题: repeat