Size Contest (SPOJ Challenge problem 378)

Given the set of integers, find the sum of all positive integers in it. Solutions can be sent in any language supported by SPOJ except Whitespace.


t – number of test cases [t < 1000]
On each of next t lines given a integer N [-1000 <= N <= 1000]


One integer equals to sum of all positive integers.


Score equals to size of source code of your program except symbols with ASCII code <= 32.


C Program :


Factorial (SPOJ problem 11)

View problem on SPOJ The most important part of a GSM network is so called Base Transceiver Station (BTS). These transceivers form the areas called cells (this term gave the name to the cellular phone) and every phone connects to the BTS with the … [Continue reading]

Check whether one string is rotated version of other(Josh software programming test problem-2)

Write a program to accept two strings str1 and str2 and checks whether str2 is rotated version of str1. Ex. Following are different values of str2 for given str1. GIVEN:str1="software" 2-character left rotate str2='resoft' 4-character left … [Continue reading]

Generate graph from input 1-D array (Josh Software programming test problem-1)

Josh software apti

Following program was asked by Josh Software during campus recruitment. Write a program to generate following chart without using any graph library.This is of marks from 1 to 5 obtained by 10 student represented by an array as … [Continue reading]

Remove duplicate characters in string

Write code to remove the duplicate characters in a string without using any additional buffer NOTE: One or two additional variables are fine An extra copy of the array is not. This question is from the book "cracking thecoding interview". Time … [Continue reading]

Recursive insertion sort


[crayon-5563e5a3d007f998099650/]   … [Continue reading]

Snake game in C language using queue

Requirments: Turbo C++ compiler If you face any graphics error ,follow these steps. Go to "BGI" folder. ( C:\TurboC++\Disk\TurboC3\BGI). Copy file "EGAVGA.BGI"  Got "BIN" folder. ( C:\TurboC++\Disk\TurboC3\BIN). Paste "EGAVGA.BGI" file … [Continue reading]

99 things I learned while blogging

things I learned while blogging

I started my blogging career with Then I migrated to Now I run 2 blogs on wordpress. In my 7 months of short blogging career I learned many thing .  I am sharing all points with you. Set your goals. Blog about … [Continue reading]

Latest SEO Technology for Better Site Optimization

seo free

The success of your online business will depend on how well you are using latest search engine optimization technology.  To beat the competitors effectively you should use latest online marketing strategies to be in the competition.  There are number … [Continue reading]

10 resons why I blog

I love blogging

Before I started my first blog, I have misconception that to start a blog we need lots of money and blogging  is difficult . Then my ex room mate Akash Nandnaware( who blog marathi poetry ) told me that " you can start a free blog of your photos . … [Continue reading]