PR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [top] | |
| top -p `pgrep -d "," java` | |
| [chmod/chown] | |
| chown -R runoob:runoobgroup * | |
| [docker] | |
| sudo docker-compose up --force-recreate --build -d | |
| sudo docker exec -it minecraft bash | |
| sudo docker logs -f minecraft |
I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.
So below I made a list of leetcode problems that are as close to grokking problems as possible.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import copy | |
| import random | |
| game_over = True | |
| quit = False | |
| board = [[0, 0, 0, 0], | |
| [0, 0, 0, 0], | |
| [0, 0, 0, 0], | |
| [0, 0, 0, 0]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from socket import * | |
| from urllib.parse import urlparse | |
| INVALID_REQ = "Invalid request" | |
| database = dict() | |
| HOST = "localhost" | |
| PORT = 4000 | |
| server_socket = socket(AF_INET, SOCK_STREAM) |