⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 binaryinsertions.pas

📁 Implementations of different methods of sorting: BinaryInsertions.pas BubbleSort.pas HeapSort.p
💻 PAS
字号:
for i:= 2 to n do    if a[i-1]>a[i] then  begin x:= a[i];   left:= 1;   right:= i-1;   repeat     sred:= (left+right)div 2;     if a[sred]<x then left:= sred+1         else right:= sred-1;       until left>right;   for j:= i-1 downto left do a[j+1]:= a[j];   a[left]:= x; end;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -