관리 메뉴

Jun Hyuk Kim's Blog

[2023/01/01] Code Diary(New years + Python coding + django) 본문

Coding Journal

[2023/01/01] Code Diary(New years + Python coding + django)

junhyuk1229 2023. 1. 1. 23:09

Was busy during yesterday so had no updates.

 

Update python coding problems.

Not using structs for nodes for queues and stacks in python tends to make problems regarding speed. Learned to look problems on a different perspective instead of trying to make the same solution better. Ex: backpack problem, using cursor to delete string(used 2 deques together to get the same speed as a normal queue in C).

Learned using Dijkstra algo to get the min value path. Need to try to try other problems next time to review. Need to update the page in the future with better examples.

 

Took the beginner course for naver bootcamp. The lesson was just mostly relearning basic python code with some new parts. Learned about reduce and *args and **kwargs. I knew what they did in a basic sense, but watching the video helped me understand it further. *args takes more parameters in a function without declaration as a tuple, while **kwargs takes more parameters with a declaration as a dictionary. Also learned about decorator and will try to use them for my django project.