Code 4 Bill

This is the Code4Bill blog. If you're looking for the contest site, head on over to http://www.code4bill.com
Posts
  • Code 4 Bill

    Fibonacci system

    • 3 Comments
    We typically learn binary system, hex system in our courses. Most of them are predictable in their position values or they are linear. This system is not linear as its dependant on Fibonacci series. 3 is the first duplicate (ignoring 1 as we started...
  • Code 4 Bill

    Two digit numbers

    • 2 Comments
    I always wondered how to place digits 0 to 9 in a matrix which contains all the digits from 00 to 99 and what is the minimum matrix size that is needed.In this question we are trying to enumerate the number of numbers we can produce. Lot of people are...
  • Code 4 Bill

    Counting bits - continued

    • 4 Comments
    Lot of people sent code with counting bits method. Some people also sent the permutations sequence and expressions to say how many numbers exist before N that have same 1's in binary form. Counting 1's in a number is better than O(N) algorithm where...
  • Code 4 Bill

    Number of 1s problem

    • 2 Comments
    Previously I asked a question regarding the distribution of how many swaps are needed to move array elements. Here we are trying to count the number of 1's. Counting number of 1's vs the distribution table (All numbers which have 2 1's and how many times...
  • Code 4 Bill

    December 13th brain teaser

    • 1 Comments
    [ Go to http://www.microsoft.com/india/code4bill/SampleQuestion.aspx to see the question - Sriram] Trying to move to coding related questions from number sequences. The reason I chose 32 is to make sure recursion doesn’t terminate quickly. Not trying...
  • Code 4 Bill

    The power of 2! (Dec 12th Brain teaser)

    • 7 Comments
    [ To see the question referred to in this blog post, check out www.code4bill.com (the Dec 12th brain teaser) - Sriram Krishnan] The previous two questions were easy to crack by writing simple code. So I thought we could use some machine power to actually...
  • Code 4 Bill

    Oh My God!

    • 6 Comments
    I'm sure several people had had this experience. You spend a lazy Saturday at home whiling away your time and sleeping. Sunday morning, you come to work, open your email and you go 'Oh My God!' at something you see in your email and you curse yourself...
  • Code 4 Bill

    37

    • 3 Comments
    As I stated in the morning the number 37 is key to getting results which contain the same digits 37 * 3 = 111 Then variations of this like 74 * 3, 37 * 6....... bring the results 111, 222,etc. Then starts the next series 37037 and the other...
  • Code 4 Bill

    Question for the day

    • 62 Comments
    A * BCDEF = GGGGGG This is another question that's about working on the digits of a number. It all starts with 37 * 3 = 111.After that you will see lot of numbers which produce the same digit in the resulting number and are in some way related to the...
  • Code 4 Bill

    Code4Bill begins!

    • 87 Comments
    Welcome to the Code4Bill blog! If you’ve found your way here, I’m sure you already know what Code4Bill is. If you don’t, here’s a quick refresher – Code4Bill is a contest aimed at finding the best student programmers in India. If you thought that you...
Page 1 of 1 (10 items)