프론트엔드 개발자 엄성준 블로그

  • 홈
  • 태그

replaceAll() 2

[Leet Code - eazy] 1678. Goal Parser Interpretation

You own a Goal Parser that can interpret a string command. The command consists of an alphabet of "G", "()" and/or "(al)" in some order. The Goal Parser will interpret "G" as the string "G", "()" as the string "o", and "(al)" as the string "al". The interpreted strings are then concatenated in the original order. Given the string command, return the Goal Parser's interpretation of command. Examp..

코딩 테스트 풀이 🛠 2023.02.13
[프로그래머스] 특정 문자 제거하기

문제 설명 문자열 my_string과 문자 letter이 매개변수로 주어집니다. my_string에서 letter를 제거한 문자열을 return하도록 solution 함수를 완성해주세요. 입출력 예 my_string letter result "abcdef" "f" "abcde" "BCBdbe" "B" "Cdbe" 나의 풀이 1 2 3 4 5 6 function solution(my_string, letter) { let answer = my_string.replaceAll(letter,''); return answer; } Colored by Color Scripter cs 문제를 풀며 느낀 점 - mdn 사이트에서 replace()메서드를 통해서 어떤 패턴에 일치하는 일부를 교체하고 변경하는 함수를 알..

코딩 테스트 풀이 🛠 2022.11.02
이전
1
다음
더보기
프로필사진

꾸준함을 강점으로 삼고 있는 프론트엔드 개발자 엄성준 블로그입니다.

  • 카테고리 📂 (380)
    • 코딩 테스트 풀이 🛠 (232)
    • 지식 정리 📝 (76)
    • zero-base 프론트엔드 스쿨 ⛪️ (20)
    • 3월 협업 프로젝트(1석 4조) 👨‍👩‍👧‍👦 (19)

Tag

indexOf(), 프론트엔드 개발자 엄성준, 오토위니, 엄성준, sort(), 프론트엔드 개발자, 제로베이스 프론트엔드 스쿨, forEach(), split(), String(), 프론트엔드, react, Number(), join(), 프로그래머스, exceljs, autowini, next.js, 프론트엔드 스쿨, 제로베이스,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

방문자수Total

  • Today :
  • Yesterday :

꾸준함이 강점이자 자랑인 프론트엔드 개발자 엄성준 입니다.

  • Github
  • 📷 Instar
  • 🎨Portfolio

티스토리툴바