7 kyu
Suitcase packing
746 of 1,9150xbba
Description:
Mr. Square is going on a holiday. He wants to bring 2 of his favorite squares with him, so he put them in his rectangle suitcase.
Write a function that, given the size of the squares and the suitcase, return whether the squares can fit inside the suitcase.
fit_in(a,b,m,n)
a,b are the sizes of the 2 squares
m,n are the sizes of the suitcase
Example
fit_in(1,2,3,2) should return True
fit_in(1,2,2,1) should return False
fit_in(3,2,3,2) should return False
fit_in(1,2,1,2) should return False
Puzzles
Similar Kata:
Stats:
Created | Feb 2, 2019 |
Published | Feb 2, 2019 |
Warriors Trained | 4163 |
Total Skips | 75 |
Total Code Submissions | 23626 |
Total Times Completed | 1915 |
Python Completions | 746 |
Java Completions | 377 |
C# Completions | 167 |
JavaScript Completions | 603 |
Rust Completions | 122 |
F# Completions | 12 |
COBOL Completions | 6 |
Total Stars | 38 |
% of votes with a positive feedback rating | 82% of 420 |
Total "Very Satisfied" Votes | 308 |
Total "Somewhat Satisfied" Votes | 75 |
Total "Not Satisfied" Votes | 37 |
Total Rank Assessments | 16 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |