Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Between Two Sets
- Grading Students
- Javascript
- 생활코딩
- Apple and Orange
- Breaking the Records
- #nodejs#express
- Time Conversion
- 알고리즘
- javascirpt
- Birthday Chocolate
- alogrithim
- A Very Big Sum
- Drawing Book
- 프로그래머스
- 노드
- Data Structure
- 짝수와 홀수
- Sock Merchant
- 자바스크립트
- Divisible Sum Pairs
- 자료구조
- Migratory Birds
- hackerrank
- Algorithm
- Ellectronics Shop
- git
- #nodejs#노드js
- nodejs
- algorithim
Archives
- Today
- Total
ian의 개발일기장
[level1] 문자열을 정수로 바꾸기 본문
1. 나의 풀이
부호랑 숫자로 이루어진 문자열이라 Number를 활용했다.
2. 다른사람 풀이
문자열을 1로 나누었다.
3. 결론
숫자로이루어진 문자열은 Number함수 적용이 가능하거나 * 나 / 연산이 적용가능하다.
4. 정리
숫자로 이루어진 문자열 * 숫자 = 숫자
숫자로 이루어진 문자열 / 숫자 = 숫자
출처 - 프로그래머스
'Algorithms > Programmers' 카테고리의 다른 글
[level1] 서울에서 김서방 찾기 (0) | 2018.09.15 |
---|---|
[level1] x만큼 간격이 있는 n개의 숫자 (0) | 2018.09.15 |
[level1] 문자열 다루기 기본 (0) | 2018.09.14 |
[level1] 문자열 내 p와 y의 개수 (0) | 2018.09.13 |
[level1] 최대공약수와 최소공배수 (0) | 2018.09.13 |