개발공부

    [JavaScript] 33. Search in Rotated Sorted Array - 쉬운설명 바이너리 서치 활용

    33. Search in Rotated Sorted Array There is an integer array nums sorted in ascending order (with distinct values). Prior to being passed to your function, nums is possibly rotated at an unknown pivot index k (1

    [React] Visual Studio Code에서 Github 활용 필수 기본 정리 -  깃헙에 업로드 하기, 클론

    [React] Visual Studio Code에서 Github 활용 필수 기본 정리 - 깃헙에 업로드 하기, 클론

    깃헙에서 리포지터리 생성 GitHub 세팅 리포지터리는 저장소 역할을 합니다. 만든 리엑트앱이 업로드 되기전 리포지터리가 생성되있어야합니다. 깃헙에 들어간후, 새로운 리포지터리를 만들어주세요. 이제 리포지터리 이름을 만들어준후, public이나 private 설정후 확인을 눌러주시면 Github에서 세팅은 끝납니다. 만들어주면 리포지토리 로 이동하게 됩니다. 이제 리포지토리의 url을 복사해주세요. Visual Studio Code 터미널을 열어줍니다. 이제 Visual Studio Code에서 방금 생성해줬던 repository로 업로드하라고 명령해주어야합니다. 먼저 git init을 입력해준후 git remote add origin [리포지터리 주소] 를 해주시면 업로드할 리포지터리가 어디인지 인식합..

    [React] react 앱을 만들기전 셋업

    [React] react 앱을 만들기전 셋업

    터미널을 이용한 파일생성 및 실행 먼저 [터미널] 을 열어서 리엑트 파일을 만들어줘야합니다. (터미널 여는법: Command shift P) 저는 [Documents] 아래에 [movie-app-2019] 이름으로 만들어주겠습니다. 1. 경로 설정해주기 저는 documents아래에 react파일을 만들어 주도록하겠습니다. cd [경로] 2. React파일 만들어주기 npx create-react-app [파일이름] 3. Visual Studio Code 열기 code [react파일 이름] 터미널을 통해 [리엑트 폴더] 를 만들었다면 [Visual Studio Code]에서 열든지 아래와 같이 code - [파일이름] 을 적어주시면 Visual Studio Code로 자동으로 윈도우가 열리게 됩니다. 만..

    [JavaScript]856. Score of Parentheses 쉬운설명, stack 사용

    [JavaScript]856. Score of Parentheses 쉬운설명, stack 사용

    856. Score of Parentheses Given a balanced parentheses string s, return the score of the string. The score of a balanced parentheses string is based on the following rule: "()" has score 1. AB has score A + B, where A and B are balanced parentheses strings. (A) has score 2 * A, where A is a balanced parentheses string. Example 1: Input: s = "()" Output: 1 Example 2: Input: s = "(())" Output: 2 E..