Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public static int findConfigs(int width){
  2. int configs = 0;
  3. if(width >= 4){
  4. configs += findConfigs(width-4);
  5. }
  6. if(width >= 1){
  7. configs = findConfigs(width-1);
  8. }
  9. if(width == 0){
  10. configs++;
  11. return configs;
  12. }
  13. return configs
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement