1 2 4 I guess.
coskun... On Mon, Jan 19, 2009 at 2:29 PM, manoj janoti <m.jan...@gmail.com> wrote: > Just want to know what will be the structure if the number of stackable > objects is 7 > > ~Janoti > > > On Mon, Jan 19, 2009 at 11:17 AM, Darth Continent < > darthcontin...@gmail.com> wrote: > >> >> Hello, when I searched I found a couple of spam posts for pyramid >> scams, so I'm hoping someone may be able to help. >> >> Say you have a collection of stackable objects, like blocks or boxes. >> You need to stack them in a pyramid as tall as possible, so that no >> more than 1-2 of the objects is at the top level, and so that each >> layer is larger than the first, for example: >> >> O >> OO >> OOO >> OOOO >> >> Given the total number of stackable objects, what would be an >> effective looping algorithm to make this happen? Thanks in advance >> for any help. >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/algogeeks -~----------~----~----~----~------~----~------~--~---