This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
void insertionSort(int n, int * arr) | |
{ | |
int temp,i,j,k; | |
for(i=1;i<n;i++) | |
{ | |
j=i; | |
while(j>0 && arr[j]<arr[j-1]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int n; | |
cin>>n; | |
int m; | |
cin>>m; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<DOCTYPE! html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var myarr=[1,2,3,4,5]; | |
function sum(arr) { | |
var sum1=0; | |
var length=myarr.length; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function checkStr(string1) | |
{ | |
var vowel_list='aeiouAEIOU'; | |
for(var i=0;i<string1.length;i++) | |
{ | |
if(string1[i]!==vowel_list | |
{ | |
return false; | |
} |