Advertisement
Guest User

Untitled

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