aaronvan icon

O(N^3)

aaronvan | PRO | 07/08/18 05:54:45 PM UTC | 0 ⭐ | 624 👁️ | Never ⏰ | []
Java |

190 B

|

None

|

0 👍

/

0 👎

public static void downByThree (int n) {
   int x = n;
      while (x > 0) {
    int y = n;
    while (y > 0) {
       int z = n;
       while (z > 0) {
          z--;
       }
       y--;
    }
    x--;
   }
}

Comments