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> | |
#include <stdlib.h> | |
#define max 10001 | |
void quickSort(int a[],int l,int r); | |
int partition(int a[],int l,int r); | |
//main function definition | |
int main() | |
{ |
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> | |
#include <stdlib.h> | |
#define max 10001 | |
void quickSort(int a[],int l,int r,int *count); | |
int partition(int a[],int l,int r); | |
//main function definition | |
int main() | |
{ |
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> | |
#include <stdlib.h> | |
#define max 30 | |
void mergeSplit(int a[],int l,int n); | |
void mergeSort(int a[],int l,int mid,int n); | |
int main() | |
{ | |
int n; |
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> | |
#define max 30 | |
void build_MaxHeap(int a[],int arraySize); | |
void max_Heapify(int a[],int i,int heapSize); | |
void heapSort(int a[],int arraySize); | |
void swap(int a[],int i,int largest); | |
int main() | |
{ |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
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
import java.util.Scanner; | |
public class RadixSort | |
{ | |
//method returns number of digits in the maximum element of the array | |
private int getMaxDigits(int a[],int size) | |
{ | |
int max=a[0]; | |
for(int i=1;i<size;i++) //find the maximum element in the array | |
{ |
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
import java.util.Scanner; | |
public class CountingSort | |
{ | |
//method to get the maximum element from the array | |
private int getMax(int a[],int size) | |
{ | |
int max=a[0]; | |
for (int i = 1; i < size; 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
[ | |
{ | |
"name": "Afghanistan", | |
"dial_code": "+93", | |
"code": "AF" | |
}, | |
{ | |
"name": "Aland Islands", | |
"dial_code": "+358", | |
"code": "AX" |
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
{ | |
"Andaman and Nicobar Islands": [ | |
"Port Blair" | |
], | |
"Haryana": [ | |
"Faridabad", | |
"Gurgaon", | |
"Hisar", | |
"Rohtak", | |
"Panipat", |
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 <linux/kernel.h> | |
asmlinkage long sys_hello(void) | |
{ | |
printk("Hello world\n"); | |
return 0; | |
} |