由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - amazon 新鲜面筋
相关主题
如果给随即函数rand[1,5] 如何产生rand[1,7][合集] 给一个rand5(),写一个rand7()
从rand5 求rand7Google面试回来
问道cc150上的题问一个老题
请教一道面试题CLSR: how to generate random(a, b) with random(0,1)
google intern 电面面经问个随机数的问题
rand5 -> rand7的解法?看不懂careercup上一题的答案
求教Careercup 150 上的一道题目明天onsite,求下bless了
请教个弱题:random generator: from 1~5 to 1~7讨论一道经典题
相关话题的讨论汇总
话题: integer话题: write话题: returns话题: takes话题: function
进入JobHunting版参与讨论
1 (共1页)
a***m
发帖数: 5037
1
phone coding questions :
1 - Write a function that takes an integer N and returns the Nth number of a
Fibonacci suite.
2 - Given a list of Integer. Write a function that takes an integer and
returns all the pair of integers included in the given list that sum up with
this integer.
Face to face coding questions :
1 - Write a function that takes an integer and return a string of this
integer in Roman number format.
2 - Go game. Write a function that takes a position (x,y) in a go game graph
and returns a boolean telling if this position contains a white or black
piece and if this piece is trapped or not.
3.Using an already implemented method Rand5() that generates a random
integer between the ranges 1-5 uniformly. Using this method, implement a a
new method that returns a random integer in the range 1-7 uniformly, i.e.
Rand7().
j******n
发帖数: 3
2
All these or variants are in CC150

a
with
graph

【在 a***m 的大作中提到】
: phone coding questions :
: 1 - Write a function that takes an integer N and returns the Nth number of a
: Fibonacci suite.
: 2 - Given a list of Integer. Write a function that takes an integer and
: returns all the pair of integers included in the given list that sum up with
: this integer.
: Face to face coding questions :
: 1 - Write a function that takes an integer and return a string of this
: integer in Roman number format.
: 2 - Go game. Write a function that takes a position (x,y) in a go game graph

c********p
发帖数: 1969
3
mark
c********p
发帖数: 1969
4
mark
1 (共1页)
进入JobHunting版参与讨论
相关主题
讨论一道经典题google intern 电面面经
Amazon On-site 面经+求bless,快两周了还没消息。rand5 -> rand7的解法?
用rand5()产生rand7()求教Careercup 150 上的一道题目
问一道题请教个弱题:random generator: from 1~5 to 1~7
如果给随即函数rand[1,5] 如何产生rand[1,7][合集] 给一个rand5(),写一个rand7()
从rand5 求rand7Google面试回来
问道cc150上的题问一个老题
请教一道面试题CLSR: how to generate random(a, b) with random(0,1)
相关话题的讨论汇总
话题: integer话题: write话题: returns话题: takes话题: function