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?
|