알고리즘

[알고리즘] 2진법 변환_특정 문자열 제거하기_반복_프로그래머스(이진변환)

seulhasony 2024. 1. 24. 17:15

https://school.programmers.co.kr/learn/courses/30/lessons/70129

 

프로그래머스

코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.

programmers.co.kr

 

솔루션

https://gist.github.com/KimSeulHa/b5c3a03ad7585685e21a3a21a98ae237

 

이진법변환_특정문자열변환_반복

이진법변환_특정문자열변환_반복. GitHub Gist: instantly share code, notes, and snippets.

gist.github.com

 

사용메소드

1. Integer.toString(int n, 2) : 이진으로 변환

2. str.toCharArray() : String을 Char배열로 변환