見出し画像

7/13 I/O

LeetCode

I almost solved a medium problem today. It’s about DFS (Depth-First Search), involving a target in a maze trying to escape and finding the best path. One significant mistake I made was using a list instead of a tuple. If you don’t want any duplicates, it’s better to use a tuple because it is immutable.

THM

A magic number is a hexadecimal number that identifies what type a file is. By using a magic number, we can spoof the file type to GIF, JPEG, etc., even though the file is actually PHP.

The method is simple: add the magic number that you want to spoof to the file.

Feel free to make any further adjustments or specify any additional requirements!

いいなと思ったら応援しよう!