Category Archives: Computer Program

A quick program in sage math to calculate number of 1s in first n natural numbers

Posted in Computer Program, Prime Numbers | Tagged | Leave a comment

Tower of Hanoi (Recursive Implementation)

Posted in Algorithm, Computer Program | Tagged , | Leave a comment

Mary and Lucy’s Coin

Lucy has forty-eight identical coins. She places half of them, with heads facing up, in a 4 by 6 rectangle. She uses the other twenty-four coins, with tails facing up, to form a frame around the rectangle. Mary has a … Continue reading

Posted in Algebra, Computer Program | Tagged | Leave a comment

Main idea in Sieve of Eratosthenese algorithm

Posted in Algorithm, Computer Program | Tagged | Leave a comment

Python Programming

Palindrome (reverse string)

Posted in Algorithm, Computer Program | Tagged | Leave a comment

C Programming

atoi Command line Swapping Array Reversing string String comparision Prime numbers (Sieve of Eratosthenese) Josephus Problem (Circular Link List) Bubble Sort Shell Sort Recursion Tower of Hanoi Binomial Coefficients

Posted in Algorithm, Computer Program | Tagged | Leave a comment

Implementing command line power function in C

Posted in Algorithm, Computer Program | Tagged , | Leave a comment

String comparison in C

Posted in Algorithm, Computer Program | Tagged | Leave a comment

Bubble sort command line in C

Posted in Algorithm, Computer Program | Tagged , | Leave a comment

Using argc and argv in C

Posted in Computer Program | Tagged | Leave a comment