Help me figure this out. Two questions.



  • The table is as follows:
    All natural numbers shall be entered in the table in order. 1 becomes left Upper cell, then picks up the leftest unfilled cell in The first line of the table is filled. Then, while the last one has There's a room full on the left, there's a room full, and we're down and down. We're filling up another cell. When there's no roommate on the left, starting to fill the cells on the right left. Once completed The cell in the first column will be repeated after that algorithm. The line and the number of columns should be removed, It's a keyboard.

    1. How do we determine the size of the mass if we only know the number that the user introduced?
    2. In general, I understand the algorithm of the decision, but how do you put this very table on the screen? It's not the point.


  • Massive and the table itself are not necessary. The endless table is being filled with corners, so how many numbers contain one square, two squares, and so on, and the reverse challenge is to which kind of corner belongs, then to determine vertically or horizontally it belongs and to remove the line and the column.

    1  2  5 ......
    4  3  6 
    9  8  7
    .....
    

    For example, the number of 6 belongs to the third corner because it is more than 2^2


Log in to reply
 

Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2