top of page
Legion of Learners
www.lol-101.com
Home
Classrooms
Courses
About Us
Executive Team
Our Mentors
Board Members
Resources
Members
More
Use tab to navigate through the menu items.
Log In
Forum Comments
1.7 Workshop: what is your algorithm?
In Introduction to Java
leedylan2016
Dec 15, 2019
2nd algorithm Number of rows = x is 6 Number of columns = y is 8 1. Place y black tiles rightward on the first row; 2. Place (x - 1) black tiles going down; 3. At the last tile drawn, place (y - 1) black tiles to the left; 4. At the last tile drawn, place (y - 2) black tiles upwards then go one black tile up; 5. Go (x - 4) down then (y - 3) to the right; 6. Then draw 2 black tiles to the right; 7. Go to the left 4 black tiles; 8. Then go down 1 tile down; 9. Then go (y - 3) to the right; 10. Then draw 2 black tiles to the right;
0
0
1.7 Workshop: what is your algorithm?
In Introduction to Java
leedylan2016
Dec 15, 2019
1st Algorithm Number of rows = x is 7 Number of columns = y is 9 1. Place y black tiles rightward on the first row; 2. Place (x - 1) black tiles going down; 3. At the last tile drawn, place (y - 1) black tiles to the left; 4. At the last tile drawn, place (y - 2) black tiles upwards then go one black tile up; 5. Go half of (x-1) down and (y-2-3)/2 right 6. Then draw 3 black tiles to the right;
0
0
leedylan2016
0
Followers
0
Following
Follow
Following icon
More actions
Profile
Forum Comments
Forum Posts
More
Use tab to navigate through the menu items.
bottom of page