Algorithm Designa67_f_strange_house_2

Strange House 2

9dfd6847-adc6-465b-bfff-0300d008dada.cC
1// Loading code...

Selected Submission

40 / 100
1.646s
523556 KB
BFS/DFSGreedy
Time Comp.
O(b^d)
Space Comp.
O(b*d)
Readability
5/10

"The code implements a search algorithm to transform a vector of integers into a specific sorted order (1s followed by 2s). It uses a priority queue to explore possible states, guided by a heuristic function, which suggests a Best-First Search approach. The `spin1` and `spin2` functions represent state transitions, and the heuristic estimates the distance to the goal state."

History

AttemptPoints Time
Try #33405/2/2025
Try #32405/2/2025
Try #31405/2/2025
Try #30405/2/2025
Try #29355/2/2025
Try #28305/2/2025
Try #27255/2/2025
Try #26505/2/2025
Try #25505/2/2025
Try #24505/2/2025
Try #23505/2/2025
Try #22505/2/2025
Try #21505/2/2025
Try #20305/2/2025
Try #1955/2/2025
Try #1805/2/2025
Try #17305/2/2025
Try #16355/2/2025
Try #15355/2/2025
Try #14355/2/2025
Try #1305/2/2025
Try #12355/2/2025
Try #11355/2/2025
Try #10355/2/2025
Try #9355/2/2025
Try #8355/2/2025
Try #7355/2/2025
Try #6355/2/2025
Try #5355/2/2025
Try #4355/2/2025
Try #3355/2/2025
Try #2355/2/2025
Try #1305/2/2025