Search: | |||||

| ||||

Home » Forum » C Programming | RSS Feeds |

I am given a problem to write a program on it in an interview. All the rounds are cleared but the only thing remaining is to solve the problem using any of the language code.

Below is the detail:

Assignment:

- there is a 15x15 checkerboard

- on each square there is initially 1 beetle

- a bird flies by 100 times

- each time the bird flies by the beetles panic and jump up; they will land on an adjacent field

- beetles won't jump off the board nor "wrap around" in case they are at a border

- beetles can stack on each other, so a square can have more than one beetle

Please show us the checkerboards beetle population on the 25, 50 and 100 approach of the bird.

Which square hosts the highest beetle population on the 25, 50 and 100 approach?

You can use any programming language of your choice and also any third party library.

Important:

we look for a printout of the checkerboard on the console, no 3D, HTML-GUI, Java-Swing, ... needed.

Please help me with this. I have to submit it by tomorrow. It could get me a new job. Thanks in advance.

Didn't find what you were looking for?
Find more on How to Solve This Complex Problem. Its a judge point of my Inteviewr
Or get search suggestion and latest updates.

Related Topics:

- How to Solve This Complex Problem. Its a judge point of my Inteview
- C++ Write a program which takes as input 4 points and tell whether these points
- Can you solve part of the problem of below question
- Help required to solve one problem related to javax.swing.JTable
- More complex Mail Merging with Excel to Word
- EL Complex Conditions
- need array based code to solve this polynomial
- How to solve it?
- Iteration to Solve Ax=b With Input Matrix
- Simple prolog program to be solved :)
- Please , Help Cant Solve This Pattern ...
- please solve this question
- please solve it
- code to convert fixed point decimal to binary
- Two ResultSet pointing to a table
- Fixed point
- how to change cell color based on complex conditions?
- Problem with Workbooks.opentext problem
- I have gotten it to init & start, but it then fails & points me to some java tutorial pages: h
- draw a X-Y graph and a line across the X-Y, a slope accoring to a 20 points
- java.awt.ActionEvent problem
- Problem in copying files to the widows temp folder
- problem with java mail
- Printing problem
- Seemingly intractable JDBC problem