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.
2-character left rotate
4-character left rotate
3-character right rotate

It seems to be bit difficult problem ,but it’s not actually. To solve this problem , We have to append first string to itself. And then check whether second string is present in first or not.

For example:
so append str1 to itself. Hence now str1=”softwaresoftware” . Now check str2 is present in str1 or not. Str2 is present in str1, hence str2 is rotated version of str1.

Note- You can not use strcat() function of string.h to concatenate a string to itself .Concatenation of string to itself using strcat() function is undefined behavior in C.

Solution using inbuilt  function of C.


Solution without using inbuilt functions

Josh Software programming test Problem 1

Leave comment if you have any problem with code.

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

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 [2,4,5,1,2,4,1,1,5,2]
Y axis denote marks and X axis denotes student role number.

Josh software apti program

Variation of problem:
Write a program to generate graph (Roll number Vs marks obtained) without using any graph library. Accept marks of n student from user, represented by an array . Y axis denote marks and X axis denotes student role number.

If you have any problem with code,please comment below.

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 complexity= O(n^2)

Leave comment if you have any problem with code.
Recursive insertion sort

Recursive insertion sort


Snake game in C language using queue

Requirments: Turbo C++ compiler

If you face any graphics error ,follow these steps.

  1. Go to “BGI” folder. ( C:\TurboC++\Disk\TurboC3\BGI).
  2. Copy file “EGAVGA.BGI” 
  3. Got “BIN” folder. ( C:\TurboC++\Disk\TurboC3\BIN).
  4. Paste “EGAVGA.BGI” file .
  5. Close Turbo C++ and open it again and run program.

How snake game works?:

  1. Initialize the snake by inserting 4 nodes in queue
  2. Print the queue, these 4 nodes will create snake
  3. To move the snake, add new node in front of head and delete node from tail
  4. clear screen and redraw the screen
  5. This will create illusion of moving snake
  6. If snake hits the food then add extra node in queue
  7. if snake hits the wall or himself then end the game

Download .C file-> SNAKE ( Right click & Save link As). Copy paste code on your local machine

99 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.

things I learned while blogging

  1. Set your goals.
  2. Blog about what you love.
  3. Newbie blogger start blog on
  4. When you have enough  knowledge of blogging , migrate to wordpress .org.
  5. Use reliable hosting like Hostgator or Bluehost.
  6. Buy  custom domain (must).
  7. Ensure domain name is easy to read, easy to tell and easy to spell.
  8. Buy custom domain from Godaddy or Namecheap .
  9. Keep blog title and domain name same.
  10. Secure your blog.
  11. Backup your blog.
  12. Delete ” Hello world ” post and remove sidebar meta login .
  13. Don’t copy posts from other blogs.
  14. Write posts regularly. ( minimum 1-2/week).
  15. Do keyword research before writing post.
  16. Write catchy post titles.
  17. Be transparent.
  18. Keep learning.
  19. Proofread your blog posts before publishing it.
  20. Get post checked for grammar mistakes from  friend. [Read more…]

Latest SEO Technology for Better Site Optimization

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 ways to increase your website visibility and traffic. Now-a-days almost all the online businesses are using search engine optimization techniques to get their website top position in search results page.

seo freeLatest Penguin and Panda algorithms from Google have altered the old traditional SEO techniques and adopted the latest SEO technologies.  To please the search engines like Google, Yahoo and Bing website owners are adopting newer technologies.

Following are considered as the basic SEO strategies.

  • Write good content that attracts more visitors.
  • Develop link building and SEO techniques.
  • Keep in touch with customers with social networking sites
  • Follow text variation methods. [Read more…]

10 resons why I blog

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 . Your blog will become famous, You can also earn money .” So very next day I opened my first blog (now )on I started my blogging career on 24 July 2012 and now I am author of three blogs. Thank you Akash for suggestion .

Here are some reasons why I started blogging and I am still blogging!

1.  Utilize time and fun

I love bloggingI am an engineering student, I get lots of time after college hours. I wanted to utilize this time so I started blogging. I am still blogging and I love blogging because it’s fun . I enjoy blogging.

2.  Money

Money is main reason to start blogging for me. And it’s every blogger’s dream to earn money from blog. But after some days I realized that we should not blog only for money .It’s not so easy to earn money through blogging. We have to do lot’s of hardwork

3.  Share my knowledge

I love photoshop. I have good knowledge of photoshop . I am not expert but I can teach few techniques of photoshop that I know very well . I share my photoshop knowledge on and It’s not necessary that you should be expert to blog about. So start your blog today about things that you love and have some knowledge.

4.  Help people

I love to help people. Blogging is great platform to help people and share your knowledge. A great thought by Zig Ziglar “You will get all you want in life if you help enough other people get what they want.”

5.  Stay updated

To write fresh content ,I should know what is happening in my industry so blogging  forces me to stay updated about what  I write.

6.  Create online identity

I want to create my identity on internet because now days its not enough to have only offline identity and now internet is best way to reach large audience, to express your thought and share your knowledge.

7.  Improve english

I learned school from Marathi language (local language of my state). so I am really bad in english .Blogging improved my english. Now at least I can write post of 400 words.

8.  Contribute to internet

We can get any kind of information on internet . Internet is biggest source of knowledge . We can make it even bigger. Blogging is great way to give your contribution to internet.

9.   Become famous

It’s my dream and I am working hard for that.

10. More friends

You get in touch with more and more people from different countries.

There are many still many reasons why I blog .I can’t write all of those . Leave comment below why you blog ,share your thoughts!

Welcome to

Hi , Welcome to I am feeling very lucky to have my website’s  name as my name. Because now days it’s very difficult to get own name as domain name. I grabbed this name in 2 days when I come to know that my name is available. It’s always good idea to buy if you wanted to brand your name  or for other reasons.

It’s me

gaurav vichare

About Me

Hi , I am Gaurav Vichare . Passionate blogger from Rajapur . I love blogging and internet . Also I am a photoshop lover. Read more about me .


It’s my third blog. I already have two blogs and One on blogger and other on wordpress. Both blog has same topic, photoshop.But i only blog on due to some reason. This is my first blog with different topic. In this blog i will write what I love, my personal experience, personal thoughts. I will also write about blogging tips. I will write 2 posts per week.


I started because I want to develop my name as brand. I want to create my identity on internet because now days its not enough to have only offline identity and now internet is best way to reach large audince, to express your thought and share your knowledge. I will try to reach as many people as I can and I will share my knowledge. Thats it for today , in next article i will write how i set my wordpress blog imagedashboard. So stay tuned . If you have any suggestion for my blog, please comment below. Thanks.