개발 기록기록📝

  • 홈
  • 태그
  • 방명록

javascript 자연수 뒤집어 배열로 만들기 1

[프로그래머스][Lvl1][Java][Javascript] 자연수 뒤집어 배열로 만들기

Lvl1. 자연수 뒤집어 배열로 만들기 문제 문제 설명 자연수 n을 뒤집어 각 자리 숫자를 원소로 가지는 배열 형태로 리턴해주세요. 예를들어 n이 12345이면 [5,4,3,2,1]을 리턴합니다. 제한 조건 n은 10,000,000,000이하인 자연수입니다. 입출력 예 n return 12345 [5,4,3,2,1] Java 내 코드 public int[] solution(long n) { String strN = String.valueOf(n); ArrayList arr = new ArrayList(); for(int i = strN.length() - 1 ; i > -1; i--){ arr.add(strN.charAt(i)); } return arr.stream().mapToInt(Character:..

Algorithm 뽀개기/프로그래머스 2023.08.27
이전
1
다음
더보기
프로필사진

개발 기록기록📝

  • 분류 전체보기
    • Dart
    • Flutter
      • Flutter 에러 해결
      • Flutter 개발 기록
      • Flutter 정리
    • Javascript
      • 모던 자바스크립트 Deep Dive
      • 문법 정리
    • Front-End
      • 성능개선
      • Next.js
      • React
      • 프론트엔드 개발환경
    • Kafka
    • JPA
    • Algorithm 뽀개기
      • 프로그래머스
      • 알고리즘을 위한 문법
      • 알고리즘 정리
    • Spring
      • 스프링 핵심원리 기본편
    • Java
    • 개발삽질기
    • python
    • AWS
    • 성능 테스팅
    • Middleware
    • Linux
    • SQL
    • Network
    • Architecture
    • OS
    • Etc
    • 회고
    • 프로젝트
      • TMS

Tag

windows kafka, error shutdown broker because all log dirs in, 프로그래머스, failed to verify code signature of, 플러터 아키텍처, flutter plugin 개발, JPA, flutter architecture, please ensure that the certificates used to sign your app have not expired., framework 'pods_runner' not found, 플러터 구조, 파이썬, log4j:error failed to rename, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'googledatatransport' from project 'pods'), 시간복잡도, the ios deployment target 'iphoneos_deployment_target' is set to 9.0, windows kafka 에러, the identity used to sign the executable is no longer valid, 플러터 클린아키텍처, ios/pods/target support files/pods-runner/pods-runner-resources.sh: permission denied command phasescriptexecution failed with a nonzero exit code,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • 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.

티스토리툴바