A=B
Ikke nok vurderinger
Portal Maze
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Tags: level
Filstørrelse:
Offentliggjort:
1.516 MB
14. apr. 2022 kl. 15:39
1 ændringsbemærkning ( vis )

Abonner for at downloade
Portal Maze

Beskrivelse
Input: A string of the maze including
> exactly one "a" as your start;
> exactly one "b" as the goal;
> "_"s as floors you can walk on;
> "|"s as walls you can't pass;
> "h"s as hammers that allow you to break one wall per hammer;
> "p"s as portals that allow you to teleport from one to another.
Output: Return true if you can reach the "b" after starting from the "a", else return false.
Constraint: Input length = 7
Populære diskussioner Vis alle (1)
6
25. apr. 2024 kl. 23:23
This problem is so great!
SoMall-dumpling
2 kommentarer
garr890354839 22. sep. kl. 16:55 
Took me 121 lines to solve... how on EARTH is 30 possible?
ymfact 21. apr. 2022 kl. 8:50 
I did it!