Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hey guys, i have an algorithms question that i can't figure out
- i have a 2d array of heights
- neighboring heights must respect the following heightA/8=heightB/8
- exception happens only when abs(heightA/8-heightB/8)=1 and either of them %8=0
- i need to change that array somehow, so it respects the rules mentioned
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement