Operators and Control Structures
Swap two numbers
Circulate the values of n variables
Find GCD of two numbers
Distance between two points
Square root of a number using Newton’s method
Exponentiation of a number
First N prime numbers
List
Maximum in a given list of numbers
Sum of elements in a list
Matrix multiplication
Search
Linear search
Binary search
Sort
Insertion sort
Selection sort
Merge sort
Dictionaries : Histograms
Read a string and find the 5 most frequent characters
Read a string and find the 3 most frequent words
File operations:
File copy
Merge two files
Read a file name from command line and count the number of lines, words and characters in the file.
Read a file and create a dictionary for the frequency of words in the file
Read a file and create a dictionary for the frequency of characters in the file.
No comments:
Post a Comment
Don't be a silent reader...
Leave your comments...
Anu