摘要: 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. 阅读全文
posted @ 2019-04-09 23:08 yjxyy 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 请实现一个函数,将一个字符串中的每个空格替换成“%20”。例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy。 阅读全文
posted @ 2019-04-09 14:43 yjxyy 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 在一个二维数组中(每个一维数组的长度相同),每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。 阅读全文
posted @ 2019-04-09 12:01 yjxyy 阅读(120) 评论(0) 推荐(0) 编辑