ive gotten this far
public boolean makeBricks(int small, int big, int goal) {
if ((big & small)> 0){
if (goal%(big*5)<=small){
return true;
}else{
return false;
}
Type: Posts; User: JoshKesner
ive gotten this far
public boolean makeBricks(int small, int big, int goal) {
if ((big & small)> 0){
if (goal%(big*5)<=small){
return true;
}else{
return false;
}
Thanks i was planning on using words
We want to make a row of bricks that is goal inches long. We have a number of small bricks (1 inch each) and big bricks (5 inches each). Return true if it is possible to make the goal by choosing...