Skip to content

UK-CHN/MyTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyTools

shell/network_fix.sh

This script helps to restart the below network related processes in linux, especialy ubuntu flavour.

  1. networking
  2. network-manager

cpp/binary_search.cpp

program to do binary search

$ g++ binary_search.cpp
$ ./a.out
Element is present at index 3

cpp/quick_sort.cpp

Program to do quick sort.

$ g++ quick_sort.cpp
$ ./a.out

Enter the number of data element to be sorted: 5
Enter element 1: 301298
Enter element 2: 93874
Enter element 3: 123
Enter element 4: 9034568
Enter element 5: 34

Sorted Data
1)34
2)123
3)93874
4)301298
5)9034568

cpp/merge_sort.cpp

Program to do merge sort.

$ g++ merge_sort.cpp
$ ./a.out

Enter the number of elements : 5
Enter element 1: 3904
Enter element 2: 123
Enter element 3: 098
Enter element 4: 8756
Enter element 5: 304978

Sorted Data
1)98
2)123
3)3904
4)8756
5)304978