GithubHelp home page GithubHelp logo

kosmosticlay / javascript-codingtest Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nobase-front-end/javascript-codingtest

0.0 0.0 0.0 279 KB

자바스크립트 코딩테스트를 뽀개기 위한 레포지토리

JavaScript 100.00%

javascript-codingtest's Introduction

🔨 JavaScript Coding Test Bbo-gae-gi 🔨

자바스크립트 코딩테스트를 뽀개기 위한 레포지토리입니다.
부트캠프 일정에 무리가 가지 않는 선에서 각자 꾸준히 알고리즘 문제를 푸는 것을 목표로 합니다.

주차 주제 문제
1주차 12. 브루트 포스 2798. 블랙잭
2231. 분해합
7568. 덩치
1018. 체스판 다시 칠하기
1436. 영화감독 숌
2주차 10. 정렬 2108. 통계학
11650. 좌표 정렬하기
1181. 단어 정렬
10814. 나이순 정렬
3주차 13. 집합과 맵 14425. 문자열 집합
1620. 나는야 포켓몬 마스터 이다솜
1764. 듣보잡
1269. 대칭 차집합
11478. 서로 다른 부분 문자열의 개수
4주차 15. 정수론 및 조합론 2609. 최대공약수와 최소공배수
1934. 최소공배수
2981. 검문
3036. 링
1010. 다리 놓기
9375. 패션왕 신혜빈
5주차 16. 백트래킹 15649. N과 M(1)
15650. N과 M(2)
9663. N-Queen
14888. 연산자 끼워넣기
14889. 스타트와 링크
6주차 17. 동적계획법 1 9461. 파도반 수열
1912. 연속합
1932. 정수 삼각형
2579. 계단 오르기
11053. 가장 긴 증가하는 부분 수열
7주차 19. 그리디 알고리즘 11047. 동전 0
1931. 회의실 배정
11399. ATM
1541. 잃어버린 괄호
13305. 주유소
8주차 20. 스택 10828. 스택
10773. 제로
9012. 괄호
4949. 균형잡힌 세상
1874. 스택 수열
9주차 21. 큐, 덱 2164. 카드2
15828. Router
11866. 요세푸스 문제 0
1966. 프린터 큐
1021. 회전하는 큐
10주차 22. 분할 정복 2630. 색종이 만들기
1992. 쿼드트리
1780. 종이의 개수
1629. 곱셈
2740. 행렬
11주차 23. 이분 탐색 1920. 수 찾기
10816. 숫자 카드 2
1654. 랜선 자르기
2805. 나무 자르기
2110. 공유기 설치

👻 공부 방법 👻

백준 단계별로 풀어보기(https://www.acmicpc.net/step) 10단계부터 매주 한단계씩 뽀갭니다.

  • 월요일: 그 주에 뽀갤 단계에서 5문제를 함께 선정하고, 각자 랜덤으로 한 문제를 담당합니다.
  • 월요일 ~ 금요일: 5문제를 뽀갭니다. 자신이 담당한 문제는 다른 사람들이 코드만 보고도 이해할 수 있도록 꼼꼼하게 주석을 작성합니다. 구글링을 해서 다른 사람의 답을 참고해도 좋습니다다. 다만, 이후에 해당 코드를 보고도 풀이 방법을 이해하지 못하는 사람이 직접 찾아온다면 언제든지 설명해줄 수 있어야 합니다.
  • 토요일: 자정까지 자신의 풀이를 레포지토리에 업로드합니다. 폴더구조는 아래 이미지를 참고합니다. 별도의 코드리뷰 없습니다. 각종 컨벤션 및 규칙 없습니다. 스크린샷 2022-08-09 오후 8 45 32


👾 백준에서 JavaScript 입출력 👾

  1. 하나의 값을 입력받을 때
const input = require('fs')
  .readFileSync(process.platform === 'linux' ? '/dev/stdin' : './input.txt')
  .toString()
  .trim();
  1. 공백으로 구분된 한 줄의 값들을 입력받을 때
const input = require('fs')
  .readFileSync(process.platform === 'linux' ? '/dev/stdin' : './input.txt')
  .toString()
  .trim()
  .split(' ');
  1. 여러 줄의 값들을 입력받을 때
const input = require('fs')
  .readFileSync(process.platform === 'linux' ? '/dev/stdin' : './input.txt')
  .toString()
  .trim()
  .split('\n');
  1. 첫 번째 줄에 자연수 n을 입력받고, 그 다음줄에 공백으로 구분된 n개의 값들을 입력받을 때
const [n, ...arr] = require('fs')
  .readFileSync(process.platform === 'linux' ? '/dev/stdin' : './input.txt')
  .toString()
  .trim()
  .split(/\s/);
  1. 첫 번째 줄에 자연수 n을 입력받고, 그 다음줄부터 n개의 줄에 걸쳐 한 줄에 하나의 값을 입력받을 때
const [n, ...arr] = require('fs')
  .readFileSync(process.platform === 'linux' ? '/dev/stdin' : './input.txt')
  .toString()
  .trim()
  .split('\n');
  1. 하나의 값 또는 공백으로 구분된 여러 값들을 여러 줄에 걸쳐 뒤죽박죽 섞여서 입력받을 때 // ex) n 입력 - 공백으로 구분된 n개의 값 입력 - m 입력 - 여러 줄에 걸쳐 m개의 값 입력
const input = require('fs')
  .readFileSync(process.platform === 'linux' ? '/dev/stdin' : './input.txt')
  .toString()
  .trim()
  .split(/\s/);
const n = input[0];
const n_arr = input.slice(1, n + 1);
const [m, ...m_arr] = input.slice(n + 1);

출처: https://overcome-the-limits.tistory.com/25

❗️ IDE에서 JS파일과 같은 디렉토리의 index.txt를 통해 입력을 받아 출력을 테스트해볼 수 있습니다 ❗️


🤖 백준 초기 설정 🤖

  1. solved.ac 연동 스크린샷 2022-07-28 오전 11 01 10
  2. 기본 설정 스크린샷 2022-07-31 오후 12 21 51 스크린샷 2022-07-31 오후 12 22 14


🎃 뽀나스 🎃

https://www.notion.so/c4945b3675b34c9c83ef8ca05f8df98f
커넥투 자체 코딩테스트 관련 토론의 장을 열어드립니다.
자신은 문제를 어떻게 이해했는지, 어떤 방법으로 풀었는지, 코너케이스는 무엇인지 등 가벼운 주제부터 코드 공유 및 코드 리뷰까지 모두 환영합니다.


javascript-codingtest's People

Contributors

chaerin-dev avatar pereng11 avatar gurabang avatar codevilot avatar y00eunji avatar sleeplessn avatar chjy0202 avatar jiseung-kang avatar chaeryeon-lee avatar orangechick avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.