给定一个排序数组和一个目标值,在数组中找到目标值,并返回其索引。如果目标值不存在于数组中,返回它将会被按顺序插入的位置。
你可以假设数组中无重复元素。
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
You may assume that each input would have exactly one solution, and you may not use the same element twice.
辣椒の酱
尚未执佩剑,转眼即江湖
阿尔及利亚
文章
68
分类
31
标签
42
:D 一言句子获取中...
algorithm
工具教程 / 主题工具
ios
health
输入邮箱点立即订阅跳转后点人机认证,点完成按钮,邮箱收到确认邮件点确认!
Update your browser to view this website correctly. Update my browser now
×