Another great example of recursion: first the maze being solved....pic.twitter.com/5VEeFmOmOA
-
Show this thread
-
And next the recursive code (pseudocode) to solve it. But there’s a small bug in the algorithm. Can you find it?pic.twitter.com/kwakYBPAE4
6 replies 13 retweets 75 likesShow this thread -
The bug (as
@derekpetrucelli pointed out earlier): the Solve function should begin by checking if P is the end of the maze, and if so return true. (Otherwise the whole maze would be filled with green and no solution found because there’s no base case that returns true)3 replies 2 retweets 27 likesShow this thread -
Replying to @codeorg @derekpetrucelli
Any plans to offer AP Com Sci A or IB Com Sci on http://code.org any time soon?
1 reply 0 retweets 0 likes
Not anytime soone. You can see @codeorg recommendations athttps://code.org/educate/curriculum/apcsa …
8:39 PM - 29 Sep 2019
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.