매일 조금씩

  • 홈
  • 태그
  • 방명록

hashset 2

[프로그래머스] 튜플 (Java)

#문제 https://programmers.co.kr/learn/courses/30/lessons/64065 코딩테스트 연습 - 튜플 "{{2},{2,1},{2,1,3},{2,1,3,4}}" [2, 1, 3, 4] "{{1,2,3},{2,1},{1,2,4,3},{2}}" [2, 1, 3, 4] "{{4,2,3},{3},{2,3,4,1},{2,3}}" [3, 2, 4, 1] programmers.co.kr #풀이 각 Set의 Element 수로 오름차순 정렬하고 HashSet을 통해 Element 중복 체크를 하며, 중복되지 않는 Element를 차례대로 넣는다. #소스코드 import java.util.*; class Solution { public int[] solution(String s) { int..

💡Problem Solving/Programmers 2021.10.20

[프로그래머스] 영어 끝말잇기 (Java)

#문제 https://programmers.co.kr/learn/courses/30/lessons/12981 코딩테스트 연습 - 영어 끝말잇기 3 ["tank", "kick", "know", "wheel", "land", "dream", "mother", "robot", "tank"] [3,3] 5 ["hello", "observe", "effect", "take", "either", "recognize", "encourage", "ensure", "establish", "hang", "gather", "refer", "reference", "estimate", "executive"] [0,0] programmers.co.kr #풀이 단어 배열을 순회하면서 1) 현재 단어가 이미 사용된 단어인지 체크한다..

💡Problem Solving/Programmers 2021.10.20
이전
1
다음
더보기
  • 분류 전체보기 (211)
    • 💡Problem Solving (182)
      • Algorithm (2)
      • BOJ (108)
      • Programmers (72)
    • 💻IT (19)
      • Java (6)
    • MountainGo (10)

방문자수Total

  • Today :
  • Yesterday :

최근댓글

Copyright © Kakao Corp. All rights reserved.

  • 백준 온라인 저지
  • 프로그래머스
  • 깃허브

티스토리툴바