注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
Q1: Sum and Average from a list
given a list of integers, write a method that returns the sum and average of only 1st, 3rd, 5th, 7th etc element
For example [1,2,3] should return 4 and 2.
您好! 本帖隐藏的内容需要积分高于 188 才可浏览 您当前积分为 0。 使用VIP即刻解锁阅读权限或查看其他获取积分的方式 游客,您好! 本帖隐藏的内容需要积分高于 188 才可浏览 您当前积分为 0。 VIP即刻解锁阅读权限 或 查看其他获取积分的方式 Unlock interview details and practice with AI Popular Interview Questions from Top Companies
42, 242)">Q5: Find and sum 2 closest numbers in list to a target number
find two number, both of them are closest to target, and return the sum.
|