Back to Browse

C++ unordered set PMR解Leetcode 874 Walking Robot Simulation

165 views
Apr 6, 2026
18:56

C++ #unorderedset #PMR 解 #Leetcode874 Walking Robot Simulation 解Leetcode 874. Walking Robot Simulation因為constraints,只好用hashmap,C++ unordered_set是知名的慢,加上pmr可以快上幾倍 ------ Solving LeetCode 874, Walking Robot Simulation, requires using a hashmap due to constraints. C++'s unordered_set is notoriously slow; adding PMR can speed it up several times. [codes on Leetcode]https://leetcode.com/problems/walking-robot-simulation/solutions/7789910/hashset-using-pmr4ms-beats-9840-by-anwen-lzym/ #anwendeng #anwendeng

Download

1 formats

Video Formats

360pmp415.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

C++ unordered set PMR解Leetcode 874 Walking Robot Simulation | NatokHD