I’ve been looking for a site to practice some programming problems when I came across CodeChef.  It has tons of problems ranging from beginner to advanced.  Some of the more advanced problems are what I would imagine in a coding interview.  You have to make an account but it’s all free.  There are also contests and rankings and things.  It’s pretty convenient too because once you submit your solution, it tells you right away rather you solved it or not as the process is automated.  The following code is my solution to an easy problem I did to test it out.  All it is, is a program to print integers to the console until the number 42 is inputted.  And here’s a link to the problem.

using System;

public class Program
   public static void Main()
      int input = 0;

      while(input != 42)
         input = int.Parse(Console.ReadLine());

         if(input != 42)

The IDE on the site has been super buggy for me.  It almost made me look elsewhere for some coding problems.  But I decided to try and just use another online IDE and just copy and paste my solution.  Once I did that, it worked quite nicely.  So I think I’ll stick with this site.  Other than the buggy IDE it seems really good.  The IDE I started using is .NetFiddle.

One thought on “CodeChef

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s