Advertisement
aaronvan

O(N^3)

Jul 8th, 2018
417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.19 KB | None | 0 0
  1. public static void downByThree (int n) {
  2.    int x = n;
  3.       while (x > 0) {
  4.     int y = n;
  5.     while (y > 0) {
  6.        int z = n;
  7.        while (z > 0) {
  8.           z--;
  9.        }
  10.        y--;
  11.     }
  12.     x--;
  13.    }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement