살다보니개발자

  • 홈
  • 태그
  • 방명록

자바스크립트 33

자바스크립트 문자열 압축 알고리즘

알파벳 대문자로 이루어진 문자열을 입력받아 같은 문자가 연속으로 반복되는 경우 반복되는 문자 바로 오른쪽에 반복횟수를 표기하는 방법으로 문자열을 압축하는 프로그램을 작성하시오.(단 반복회수가 1인경우 생략) 입력예제 AAABBBBCDDDD 출력예제 A3B4CD4 function solution(s) { let result = ""; let count = 1; for (let i = 0; i 1) { result = result + s[i] + String(count); count = 1; } else { result = result + s[i]; } } }..

알고리즘 2022.09.01

remote: error: GH006: Protected branch update failed for refs/heads/master.remote: error: Cannot force-push to this protected branch( 보호브랜치 push가 안될때)

push 했는데remote: error: GH006: Protected branch update failed for refs/heads/master.remote: error: Cannot force-push to this protected branch라고 나올때, 해당 브랜치의 Settings -> Branches 에 Branch protection rules 에 있는 룰을 Delete 눌러 삭제 해주면 된다.

Git 2022.08.28

타입스크립트 기본타입(primitive types) 원시타입 자바스크립트

기본형 let 변수명 : 타입 = 값 숫자형(number) const count: number = 1; 문자열(string) const message:string = 'hellow world'; 참,거짓(boolean) const done: boolean = true; null,undefined 는 생략

Typescript 2022.08.27
이전
1 2 3 4
다음
더보기
프로필사진

주니어 프론트엔드 개발자의 성장 기록

  • 분류 전체보기 (47)
    • 프로그래밍 (3)
    • React-Native (12)
    • React (5)
    • Javascript (3)
    • Typescript (1)
    • 자료구조 (0)
    • 알고리즘 (19)
    • Git (2)
    • NextJS (2)

Tag

자료구조, 알고리즘, 큐, 자바스크립트, IOS, ReactNative, 코딩테스트, 백준, xcode, error, 코테, 스택, 리액트네이티브, react, javascript, 리액트, 프로그래머스, 코딩, 정렬, stack,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바