Home
restato's memo
Cancel

[Algorithm] Sum of Two values

https://www.educative.io/m/sum-of-two-values https://leetcode.com/problems/two-sum/ 문제 Given an array of integers and a value, determine if there are any two integers in the array whose sum is eq...

[Algorithm] Merge two sorted linked lists

https://www.educative.io/m/merge-two-sorted-linked-lists 문제 Given two sorted linked lists, merge them so that the resulting linked list is also sorted. 풀이 two sorted linked lists: 이미 정렬된 두개의...

[Algorithm] Level Order Traversal of Binary Tree

https://www.educative.io/m/level-order-traversal-binary-tree 문제 Given the root of a binary tree, display the node values at each level. Node values for all levels should be displayed on separate ...

[Algorithm] 1544. Make The String Great

https://leetcode.com/problems/make-the-string-great/ class Solution(object): def makeGood(self, s): """ :type s: str :rtype: str """ for i in range(len(...

[Algorithm] Find the missing number in the array

https://www.educative.io/blog/crack-amazon-coding-interview-questions 문제 You are given an array of positive numbers from 1 to n, such that all numbers from 1 to n are present except one number ‘x...

[Algorithm] Copy Linked List with Arbitrary Pointer

https://www.educative.io/m/copy-linked-list-with-arbitrary-pointer 문제 You are given a linked list where the node has two pointers. The first is the regular next pointer. The second pointer is cal...

[Python] Postgresql Connection

[postgresql] host=localhost database=suppliers user=postgres password=SecurePas$1 #!/usr/bin/python from configparser import ConfigParser def config(filename='database.ini', section='postgresql...

[Python] Mac Silicon psycopg2 설치 오류

해결 방법 (1) pip3 uninstall psycopg2 brew install libpq --build-from-source export LDFLAGS="-L/opt/homebrew/opt/libpq/lib" pip3 install psycopg2 --no-cache-dir 해결 방법 (2) ❯ brew install postgresql ...

[FastAPI] FastAPI + React

https://github.com/Buuntu/fastapi-react

[FastAPI] Bunnybook 프로젝트 코드 구조 파악

https://github.com/mjhea0/awesome-fastapi 에서 bunnybook이라는 오픈소스를 발견했는데 FastAPI와 React를 사용했다고 해서 한번 프로젝트 구성 및 개발 스터디겸 코드를 살펴보기로 했다. https://github.com/pietrobassi/bunnybook#a-tiny-social-network-...