We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cd9f76 commit 2e1f131Copy full SHA for 2e1f131
Sorting/InsertionSort.ipynb
@@ -2,11 +2,34 @@
2
"cells": [
3
{
4
"cell_type": "code",
5
- "execution_count": null,
+ "execution_count": 3,
6
"metadata": {},
7
- "outputs": [],
+ "outputs": [
8
+ {
9
+ "name": "stdin",
10
+ "output_type": "stream",
11
+ "text": [
12
+ "Enter N 4\n",
13
+ " 3\n",
14
+ " 2\n",
15
+ " 5\n",
16
+ " 6\n"
17
+ ]
18
+ },
19
20
+ "name": "stdout",
21
22
23
+ "Sorted array is:\n",
24
+ "2\n",
25
+ "3\n",
26
+ "5\n",
27
+ "6\n"
28
29
+ }
30
+ ],
31
"source": [
- "### def Selection(arr):\n",
32
+ "def Selection(arr):\n",
33
" n = len(arr)\n",
34
"\n",
35
" for i in range(1, len(arr)): \n",
0 commit comments