拼多多笔试题Reach a Number--4行代码解决

LeetCode 754原题
Problem Desciption:
You are standing at position 0 on an infinite number line. There is a goal at position target.

On each move, you can either go left or right. During the n-th move (starting from 1), you take n steps.

Return the minimum number of steps required to reach the destination.



#拼多多##leetcode##笔试题目#
全部评论
沃日
点赞 回复
分享
发布于 2018-07-24 09:03
拼多多在26号19.00会做一个线上技术分享会,对技术部架构和岗位感兴趣的同学,想拿拼多多技术部offer的同学可以关注一下~~ 分享会链接在这里: https://m.qlchat.com/topic/2000001645751647.htm?pro_cl=4
点赞 回复
分享
发布于 2018-07-25 22:26
滴滴
校招火热招聘中
官网直投

相关推荐

点赞 评论 收藏
转发
点赞 收藏 评论
分享
牛客网
牛客企业服务