第五题:
读题:
给你n个数,求哪个索引的数为当前的索引
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
思路:
用数组存储这些数,然后顺序查找查找,时间复杂度最高O(n2)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
代码: