文件名称:itemindexmatching
- 所属分类:
- C#编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2015-12-07
- 文件大小:
- 2.94mb
- 下载次数:
- 0次
- 提 供 者:
- ma***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
given a sorted ( smallest to largest) array A of n distinct integers which can be positive, negative, or zero. You want to check whether or not there is an index i that matches the corresponding item A[i]. If exists, return the item, else, return -1.
Design the fastest algorithm that you can for solving this problem. O(n) solution is not the most efficient solution for this problem. The required solution is better than O(n).
- given a sorted ( smallest to largest) array A of n distinct integers which can be positive, negative, or zero. You want to check whether or not there is an index i that matches the corresponding item A[i]. If exists, return the item, else, return -1.
Design the fastest algorithm that you can for solving this problem. O(n) solution is not the most efficient solution for this problem. The required solution is better than O(n).
Design the fastest algorithm that you can for solving this problem. O(n) solution is not the most efficient solution for this problem. The required solution is better than O(n).
- given a sorted ( smallest to largest) array A of n distinct integers which can be positive, negative, or zero. You want to check whether or not there is an index i that matches the corresponding item A[i]. If exists, return the item, else, return -1.
Design the fastest algorithm that you can for solving this problem. O(n) solution is not the most efficient solution for this problem. The required solution is better than O(n).
(系统自动生成,下载前可以参看下载内容)
下载文件列表
itemindexmatching\ItemIndexMatching\bin\Debug\input.txt
.................\.................\...\.....\ItemIndexMatching.exe
.................\.................\...\.....\ItemIndexMatching.pdb
.................\.................\...\.....\ItemIndexMatching.vshost.exe
.................\.................\...\.....\ItemIndexMatching.vshost.exe.manifest
.................\.................\...\.....\samples.txt
.................\.................\ItemIndexMatching.csproj
.................\.................\ItemIndexMatching.csproj.user
.................\.................\obj\Debug\DesignTimeResolveAssemblyReferencesInput (Hanan Hindy's conflicted copy 2014-11-17).cache
.................\.................\...\.....\DesignTimeResolveAssemblyReferencesInput.cache
.................\.................\...\.....\ItemIndexMatching.csproj.FileListAbsolute.txt
.................\.................\...\.....\ItemIndexMatching.csprojResolveAssemblyReference.cache
.................\.................\...\.....\ItemIndexMatching.exe
.................\.................\...\.....\ItemIndexMatching.pdb
.................\.................\...\.....\ModOfPower.csproj.FileListAbsolute (Hanan Hindy's conflicted copy 2014-11-17).txt
.................\.................\...\.....\ModOfPower.csproj.FileListAbsolute.txt
.................\.................\...\.....\ModOfPower.csprojResolveAssemblyReference.cache
.................\.................\Program.cs
.................\.................\...perties\AssemblyInfo.cs
.................\ItemIndexMatching.sln
.................\ItemIndexMatching.suo
.................\ItemIndexMatching.v11.suo
.................\.................\obj\Debug\TempPE
.................\.................\bin\Debug
.................\.................\obj\Debug
.................\.................\bin
.................\.................\obj
.................\.................\Properties
.................\ItemIndexMatching
itemindexmatching