This file contains hidden or 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
/* selection problem solution in C*/ | |
#include<stdio.h> | |
/*swap two elements*/ | |
void swap(int *a,int *b) | |
{ | |
int temp; | |
temp = *a; | |
*a = *b; | |
*b = temp; |
This file contains hidden or 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
/* Implementaion of quicksort in C*/ | |
#include<stdio.h> | |
/*swap two elements*/ | |
void swap(int *a,int *b) | |
{ | |
int temp; | |
temp = *a; | |
*a = *b; | |
*b = temp; |
This file contains hidden or 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<stdio.h> | |
/*copy two arrays*/ | |
void copyArray(int readFrom[], int begin, int end, int writeTo[]) | |
{ | |
int i=0,j=begin; | |
while(i<end-begin+1) | |
{ | |
writeTo[i] = readFrom[j]; | |
i++; |
This file contains hidden or 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
/* insertion sort implementation in C */ | |
#include<stdio.h> | |
/* swapping two elements by reference */ | |
void swap(int *a,int *b) | |
{ | |
int temp; | |
temp = *a; | |
*a = *b; | |
*b = temp; |
This file contains hidden or 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
/* selection sort implementation in C */ | |
#include<stdio.h> | |
/* swapping two elements by reference */ | |
void swap(int *a,int *b) | |
{ | |
int temp; | |
temp = *a; | |
*a = *b; | |
*b = temp; |
This file contains hidden or 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
/* Bubble sort implementation in C */ | |
#include<stdio.h> | |
/* swapping two elements by reference */ | |
void swap(int *a,int *b) | |
{ | |
int temp; | |
temp = *a; | |
*a = *b; | |
*b = temp; |
This file contains hidden or 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
var mycanvas =document.getElementById("mycanvas"); | |
var ctx=mycanvas.getContext("2d"); | |
var w=500,h=500; | |
//canvas styles | |
mycanvas.height=h; | |
mycanvas.width=w; | |
//balls array | |
var ball=[]; | |
//Class for ball |
This file contains hidden or 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
<html> | |
<head> | |
<style> | |
#mycanvas { | |
display: block; | |
border: 5px solid green; | |
margin: 50px auto; | |
} | |
</style> | |
</head> |
This file contains hidden or 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
#!/usr/bin/python | |
import mechanize | |
import itertools | |
br = mechanize.Browser() | |
br.set_handle_equiv(True) | |
br.set_handle_redirect(True) | |
br.set_handle_referer(True) | |
br.set_handle_robots(False) |
This file contains hidden or 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
#!/usr/bin/python | |
import mechanize | |
import itertools | |
br = mechanize.Browser() | |
br.set_handle_equiv(True) | |
br.set_handle_redirect(True) | |
br.set_handle_referer(True) | |
br.set_handle_robots(False) |
NewerOlder