Skip to main content

Timeline for answer to (Leetcode) Sliding puzzle in Python by SylvainD

Current License: CC BY-SA 4.0

Post Revisions

12 events
when toggle format what by license comment
Jun 3, 2019 at 7:28 history edited SylvainD CC BY-SA 4.0
added 797 characters in body
May 31, 2019 at 14:50 comment added SylvainD New status: "Runtime: 32 ms, faster than 100.00% of Python3 online submissions for Sliding Puzzle. Memory Usage: 13.3 MB, less than 15.86% of Python3 online submissions for Sliding Puzzle."
May 30, 2019 at 21:57 comment added SylvainD Thanks. I've added a last suggestion anyway. Now I can go to bed :-)
May 30, 2019 at 21:56 history edited SylvainD CC BY-SA 4.0
added 1507 characters in body
May 30, 2019 at 21:07 vote accept Justin
May 30, 2019 at 21:06 comment added Justin Thanks a lot! Here's the Leetcode result (keeps changing actually, but it's the same as the previous one) - Runtime: 44 ms, faster than 97.46% of Python3 online submissions for Sliding Puzzle. But all in all, it is way faster than mine, which is all I needed. Accepted!
May 30, 2019 at 20:59 comment added SylvainD @Justin You can see a new optimisation on the edited version of my answer.
May 30, 2019 at 20:58 history edited SylvainD CC BY-SA 4.0
added 562 characters in body
May 30, 2019 at 20:56 comment added SylvainD Thanks for the feedback. You got me eager to find how 2.54% did :) My answer will probably get update in the next minutes!
May 30, 2019 at 20:50 comment added Justin Upvoted! Amazing answer. Here is the Leetcode result for your code - Runtime: 44 ms, faster than 97.46% of Python 3 online submissions for Sliding Puzzle.
May 30, 2019 at 20:43 history edited SylvainD CC BY-SA 4.0
added 272 characters in body
May 30, 2019 at 20:36 history answered SylvainD CC BY-SA 4.0