注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号
x
It is a 120 min Hackerrank Online coding challenge.
Two programming questions:
1, sorting.
input: a space-separated string consist of number and/or text
output: a sorted string with the numbers(acending order) and text(alphabetically) sorted.
example:
input: -3,2,-9,4,5
output: -9,-3,2,4,5
input: pear apple orange
output: apple orange pear
input: 4 orange 2rent answers, it depends on how you implement the algorithm)
3 3 1 // move data set 3 from data center 3 to data center 1
4 2 1
5 2 1
2 1 2
3 3 2
2 1 3
4 2 3
|