분류 전체보기
-
[프그래머스 2단계] 미로 탈출알고리즘 2024. 3. 18. 14:15
❓문제 설명 특정 의미를 가진 문자 구성된 문자열로 이루어진 배열을 하나 줌 미로탈출하는 것임 레버 당기고 S에서 E로 가는 최단시간을 구해야 함 탈출 못하는 경우에는 -1을 반환해야 함 ✅ 문제 해결 탈출 못하는 경우를 먼저 생각해서 예외처리로 처리한 다음에 나머지를 처리해보자 탈출 못하는 경우: 레버 상하좌우로 X가 있을 경우랑 S지점 상하좌우로 X가 있는 경우 최단거리를 찾는 것은 어떻게 해야할까??? - 검색해보자 최소시간을 구하는 문제는 BFS로 풀라고 한다. function solution(maps) { let cMaps = maps.map((e)=>[...e].map(a=>a)) const bfs = (start, init = 0) => { cMaps[start[0]][start[1]] = ..
-
[혼공컴운]운영체제 시작하기네트워크/CS Study 2024. 3. 15. 11:03
개요 1. 운영체제를 알아야 하는 이유 ✅ 운영체제를 알아야 하는 이유? 📦 운영체제란? 실행할 프로그램에 필요한 자원을 할당하고, 프로그램이 올바르게 실행되도록 돕는 특별한 프로그램으로 여느 프로그램과 같이 메모리에 적재되어야하지만 매우 특별한 프로그램이기에 커널 영역이라는 공간에 따로 적재되어 실행된다. 메모리 관리: 프로그램을 어디에 위치할지도 운영체제가 결정한다. CPU 관리: 하여 프로그램 실행 순위와 지속 시간과 같은 요소를 결정한다. 입출력장치 관리: 여러 프로그램이 특정 입출력장치를 사용하려 할 때 순서를 결정하게끔하여 충돌이 일어나지 않도록 한다. 하드웨어와 가까운 곳에 위치해서 프로그램이 요구하는 자원을 할당하고 올바르게 실행하는 것을 돕는다. 🎉 자원 더보기 프로그램 실행에 있어서 마..
-
[CS Study] SOLID 원칙네트워크/CS Study 2024. 3. 14. 22:42
개요 1. SOLID 원칙이란? 2. 단일 책임 원칙 (SRP) 3. 개방 폐쇄 원칙 (OCP) 4. 리스코프 치환 원칙 (LSP) 5. 인터페이스 분리 원칙 (ISP) 6. 의존관계 역전 원칙 (DIP) ✅ SOLID 원칙이란? 소프트웨어 개발의 다섯가지 설계 원칙을 나타내는 약어로 각 원칙을 통해 소프트웨어의 재사용성, 유연성, 확장성을 높일 수 있으며 이는 쉬운 유지 보수를 가능하게 한다. 단일 책임 원칙 (SRP, Single Responsibility Principle) 개방 폐쇄 원칙 (OCP, Open Close Principle) 리스코프 치환 원칙 (LSP, Liskov Substitution Principle) 인터페이스 분리 원칙 (ISP, Interface Segregation Pr..
-
[2차 스터디] 3주차 회고록 - 검색창개발일지/구름톤 2024. 3. 12. 08:44
[결과물 이미지] 더보기 [새롭게 알게 된 내용] onMouseDown event를 활용한 event 순서 제어 query를 통한 검색어 유지 방법과 useEffect와 state와의 관계 ul tag와 li tag 활용 [느낀 점] 검색창을 구현하면서 네이버를 참고하였는데 어떻게 하면 이렇게 될까를 생각하면서 여러 속성들을 찾아보고 알고있는 지식을 토대로 구현할 수 있는 다른 방법에 대해서 공부를 해보는 시간이였다. 단순하게 ref와 같은 방식을 통해서 구현하려고 마음먹었던 부분이 동욱님의 도움으로 더욱 간단하고 깔끔하게 구현할 수 있는 방법을 알게 되서 매우 좋았던 것 같다 공유해주신 글을 토대로 나중에 어떠한 원리로 이벤트가 순서가 결정되어있고 기본 이벤트를 막고 사용하면 어떻게 되는지 등등 여러 ..