본문 바로가기

나의 개발일지

검색하기
나의 개발일지
프로필사진 YoonJuHan

  • 분류 전체보기 (231)
    • 인공지능 (1)
    • Kaggle (4)
    • 프로그래머스 (108)
    • 백준 (82)
    • Oracle SQL (25)
    • Oracle SQL 엔진 (7)
    • 네이버 뉴스 요약 프로젝트 (4)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/03   »
일 월 화 수 목 금 토
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
Tags
  • DP
  • 재귀
  • 너비우선탐색
  • oracle
  • 데이터베이스
  • 프로그래머스
  • 스택
  • 정렬
  • Stack
  • Database
  • 파이썬
  • SQL
  • Python
  • deque
  • 힙
  • 코딩테스트
  • 이분탐색
  • heap
  • 다익스트라
  • KAKAO
  • DFS
  • 오라클
  • PCCP
  • heapq
  • 딕셔너리
  • 우선순위큐
  • 백준
  • 카카오
  • BFS
  • 그리디
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록getOrDefault (1)

나의 개발일지

[프로그래머스] Lv. 2 의상 [Python, Java]

문제 : https://school.programmers.co.kr/learn/courses/30/lessons/42578 딕셔너리, 해시 맵 파이썬 def solution(clothes): answer = 1 dic = {} for li in clothes: dic[li[1]] = dic.get(li[1], 1) + 1 for key in dic: answer *= dic[key] return answer - 1 자바 import java.util.*; class Solution { public int solution(String[][] clothes) { int answer = 1; Map map = new HashMap(); for (String[] arr : clothes) { map.put(ar..

프로그래머스 2023. 6. 29. 14:17
이전 Prev 1 Next 다음

Blog is powered by AXZ / Designed by Tistory

티스토리툴바