@@ -0,0 +1,2430 @@
+/*%0APrepare the Bunnies' Escape%0A===========================%0A%0AYou're awfully close to destroying the LAMBCHOP doomsday device and freeing Commander Lambda's bunny prisoners, but once they're free of the prison blocks, the bunnies are going to need to escape Lambda's space station via the escape pods as quickly as possible. Unfortunately, the halls of the space station are a maze of corridors and dead ends that will be a deathtrap for the escaping bunnies. Fortunately, Commander Lambda has put you in charge of a remodeling project that will give you the opportunity to make things a little easier for the bunnies. Unfortunately (again), you can't just remove all obstacles between the bunnies and the escape pods - at most you can remove one wall per escape pod path, both to maintain structural integrity of the station and to avoid arousing Commander Lambda's suspicions. %0A%0AYou have maps of parts of the space station, each starting at a prison exit and ending at the door to an escape pod. The map is represented as a matrix of 0s and 1s, where 0s are passable space and 1s are impassable walls. The door out of the prison is at the top left (0,0) and the door into an escape pod is at the bottom right (w-1,h-1). %0A%0AWrite a function answer(map) that generates the length of the shortest path from the prison door to the escape pod, where you are allowed to remove one wall as part of your remodeling plans. The path length is the total number of nodes you pass through, counting both the entrance and exit nodes. The starting and ending positions are always passable (0). The map will always be solvable, though you may or may not need to remove a wall. The height and width of the map can be from 2 to 20. Moves can only be made in cardinal directions; no diagonal moves are allowed.%0A%0ALanguages%0A=========%0A%0ATo provide a Python solution, edit solution.py%0ATo provide a Java solution, edit solution.java%0A%0ATest cases%0A==========%0A%0AInputs:%0A    (int) maze = %5B%5B0, 1, 1, 0%5D, %5B0, 0, 0, 1%5D, %5B1, 1, 0, 0%5D, %5B1, 1, 1, 0%5D%5D%0AOutput:%0A    (int) 7%0A%0AInputs:%0A    (int) maze = %5B%5B0, 0, 0, 0, 0, 0%5D, %5B1, 1, 1, 1, 1, 0%5D, %5B0, 0, 0, 0, 0, 0%5D, %5B0, 1, 1, 1, 1, 1%5D, %5B0, 1, 1, 1, 1, 1%5D, %5B0, 0, 0, 0, 0, 0%5D%5D%0AOutput:%0A    (int) 11%0A%0AUse verify %5Bfile%5D to test your solution and see how it does. When you are finished editing your code, use submit %5Bfile%5D to submit your answer. If your solution passes the test cases, it will be removed from your home folder.%0A*/%0A

Create prepare_the_bunnies_escape_question.java