졸리다

졸리다

  • 분류 전체보기 (149)
    • TIL (16)
      • 자바 (7)
      • 웹 (6)
      • 자바스크립트 (3)
      • ETC (0)
    • 책 (15)
      • 객체지향의 사실과 오해 (7)
      • Http&Network Basic (3)
      • 스프링 부트와 AWS로 혼자 구현하는 웹 서비스 (5)
    • 강의 (22)
      • 실전 JSP (1)
      • 예제로 배우는 스프링 입문 (1)
      • 자바 스프링 프레임워크 (1)
      • 스프링 부트 개념과 활용 (11)
      • 생활코딩 (6)
      • JS Flow (2)
    • 프로그래머스 (96)
      • LEVEL 1 (29)
      • LEVEL 2 (37)
      • LEVEL 3 (3)
      • LEVEL 4 (1)
      • 카카오 (26)
  • 홈
  • 알고리즘
RSS 피드
로그인
로그아웃 글쓰기 관리

졸리다

컨텐츠 검색

태그

최근글

댓글

공지사항

아카이브

프로그래머스(96)

  • [프로그래머스][3차] 방금그곡

    import java.util.*; class Solution { class candidateSong{ int time; int turn; String name; candidateSong(int time, int turn, String name){ this.time = time; this.turn = turn; this.name = name; } } public String solution(String m, String[] musicinfos) { String answer = ""; List answerList = new ArrayList(); m = poundProcess(m); for(int i=0; i

    2020.04.14
  • [프로그래머스] 폰켓몬

    import java.util.*; class Solution { public int solution(int[] nums) { int answer = 0; Set ponketmon = new HashSet(); for(int i=0; i

    2020.04.13
  • [프로그래머스][1차] 캐시

    import java.util.*; class Solution { public int solution(int cacheSize, String[] cities) { int answer = 0; List cache = new ArrayList(); if(cacheSize==0){ return cities.length * 5; } cities = cityInit(cities); for(int i=0; i

    2020.04.13
  • [프로그래머스] 점프와 순간이동

    import java.util.*; public class Solution { public int solution(int n) { int ans = 1; while(n!=1){ if(n%2==0){ n=n/2; }else{ ans++; n=n-1; } } return ans; } } 도착점이 짝수이면 전에 도착한데까지에서 순간이동을 하면 되므로 소모되는 것이없다. 도착점이 홀수이면 (도착점-1) 에서 1만큼 소모하면 되므로 (도착점-1) 까지의 소모값에 1을 더해주면 된다.

    2020.04.13
  • [프로그래머스] 튜플

    import java.util.*; class Solution { public int[] solution(String s) { int[] answer = {}; s = s.substring(2); String[] tup = s.split("}"); List list = new ArrayList(); List answerList = new ArrayList(); for(int i=0; i

    2020.04.12
  • [프로그래머스] N개의 최소공배수

    import java.util.*; class Solution { public int solution(int[] arr) { int answer = 1; Arrays.sort(arr); List value = new ArrayList(); int max = arr[arr.length-1]; for(int i=2; i

    2020.04.12
1 ··· 6 7 8 9 10 11 12 ··· 16
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바