注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
Skytap是西雅图的一家云计算初创公司,招软件工程师,用coderpad出的在线面试题如下:
Pleaseanswer the following five questions. This exercise should take under an hour.
QUESTION#0: Agreement not to use external help
As youcomplete the test, do not use a search engine, open a REPL, write code in yourown IDE/editor, or otherwise use any tools other than CoderPad.
Do youagree to this? Type your initials below.
---
ANSWER#0:
Initials: <fillthis in>
================================================================================
QUESTION#1: Array with odd numbers
In thelanguage of your choice, implement a function named `get_odd_numbers`,which takes as input an array of integers and returns a new arrayof only the odd numbers, where the order of the elements is otherwiseunchanged.
Forinstance, `get_odd_numbers([1,2,3,4,5,6,7])` should return `[1,3,5,7]`.
---
ANSWER#1:
Useexample (Python code)
q = Queue() q.put(10) q.put(20)
q.get() # returns 10 q.get() # returns 20 q.get() # blocks until another thread put()san element
---
ANSWER#4:
Language: <fillthis in>
Implementation: <fillthis in>
---------
Thank youfor participating!
补充内容 (2018-9-18 14:25):
没来得及设置隐藏就发了 :( 怎么编辑帖子呀? |