由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - google interview question
相关主题
问道看到的面试题LC的罗马转数字规则是什么?
G 家电面题目, 欢迎讨论!请教一个题 string similarity
感觉这是一道经典题请教关于如何写TestCase
问个程序题10个包子真心问一道题
一个算法题目问一道interview street 上的题
问一道面试题T onsite一题
一个code challengecloudera的codebility的 test
Leetcode的题能看到test cases么?我花了一个小时才调通过这个程序
相关话题的讨论汇总
话题: input话题: output话题: interview话题: question话题: dollar
进入JobHunting版参与讨论
1 (共1页)
I**A
发帖数: 2345
1
Writing the code to convert numeric amount of price into English words.
ideas?
Z*****Z
发帖数: 723
2
这是我今天interview的homework,正在写测试样例呢。帮我想想,呵呵。这是我现在有
的:
input:[0]
output:[zero dollar]
input:[0.01]
output:[zero dollar and one cent]
input:[1.100]
output:[one dollar and ten cents]
input:[1.00]
output:[one dollar]
input:[3.5]
output:[three dollars and fifty cents]
input:[000123004.56]
output:[one hundred twenty-three thousand and four dollars and fifty-six cen
ts]
input:[99123004.56]
output:[ninety-nine million and one hundred twenty-three thousand and four d
ollars and fifty-six cents]
input:[12345

【在 I**A 的大作中提到】
: Writing the code to convert numeric amount of price into English words.
: ideas?

I**A
发帖数: 2345
3
我要看code

在有

【在 Z*****Z 的大作中提到】
: 这是我今天interview的homework,正在写测试样例呢。帮我想想,呵呵。这是我现在有
: 的:
: input:[0]
: output:[zero dollar]
: input:[0.01]
: output:[zero dollar and one cent]
: input:[1.100]
: output:[one dollar and ten cents]
: input:[1.00]
: output:[one dollar]

Z*****Z
发帖数: 723
4
你先写testcase我再发口德 :)

【在 I**A 的大作中提到】
: 我要看code
:
: 在有

I**A
发帖数: 2345
5
input:[0.01]
output:one cent就够了吧
input:[1.0011111]的小数点后面超过两三位的情况?

在有

【在 Z*****Z 的大作中提到】
: 这是我今天interview的homework,正在写测试样例呢。帮我想想,呵呵。这是我现在有
: 的:
: input:[0]
: output:[zero dollar]
: input:[0.01]
: output:[zero dollar and one cent]
: input:[1.100]
: output:[one dollar and ten cents]
: input:[1.00]
: output:[one dollar]

I**A
发帖数: 2345
6
input is float or double?
what is its maximum value?

【在 Z*****Z 的大作中提到】
: 你先写testcase我再发口德 :)
Z*****Z
发帖数: 723
7
输入是String,范围百万级以内

【在 I**A 的大作中提到】
: input is float or double?
: what is its maximum value?

I**A
发帖数: 2345
8
输入是String?

input [12ab_c/2]
input [12.35bc]
还有
input[1000]
input[1000000]
input[100000000]
etc
l*******g
发帖数: 4894
9
和输入一个string,转化为binary差不多吧。

【在 I**A 的大作中提到】
: Writing the code to convert numeric amount of price into English words.
: ideas?

1 (共1页)
进入JobHunting版参与讨论
相关主题
我花了一个小时才调通过这个程序一个算法题目
another google interview question:问一道面试题
一道微软题一个code challenge
一个Google面试题Leetcode的题能看到test cases么?
问道看到的面试题LC的罗马转数字规则是什么?
G 家电面题目, 欢迎讨论!请教一个题 string similarity
感觉这是一道经典题请教关于如何写TestCase
问个程序题10个包子真心问一道题
相关话题的讨论汇总
话题: input话题: output话题: interview话题: question话题: dollar