- 博客(3)
- 收藏
- 关注
原创 C++冒泡排序的指针越界问题
1.提示用户输入一个数据总个数(设定一个范围,如果用户是非法输入,应可以提示重输) 2.提示给这个数组输入整数值(如果用户输入错误,应可以重输) 3.显示未排序数组的元素 4.询问是否要在未排序数组中查找数据(如果你选择的不是Y,y,程序将从第八步开始) 5.提示输入一个查找值 6.显示查找结果(如果程序发现一个匹配的元素,它就显示此元素数组的下标,否则程序靠诉你没有找到与查找值匹配的元...
2018-09-10 20:51:17
719
原创 leetcode-Search in Rotated Sorted Array
Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). You are given a target value to search. If found in the array return its
2018-01-09 16:06:34
177
原创 leetcode-twoSum
Question: Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the
2018-01-09 15:50:02
324
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅