Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static int findConfigs(int width){
- int configs = 0;
- if(width >= 4){
- configs += findConfigs(width-4);
- }
- if(width >= 1){
- configs = findConfigs(width-1);
- }
- if(width == 0){
- configs++;
- return configs;
- }
- return configs
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement