토마토의 개발일지
  • 홈
  • 태그
  • 방명록
  • 메뉴 닫기
  • 글작성
  • 방명록
  • 환경설정
    • Development (144)
      • Languege (39)
        • Java & Spring (27)
        • C# & ASP.NET (5)
        • JavaScript (2)
        • Kotlin (5)
      • DB (0)
        • Oracle (0)
      • Study (72)
        • 네트워크 (3)
        • 이펙티브 자바 (41)
        • 우아한 테크 코스 (7)
        • Next Step (3)
        • Certificate (5)
        • Side Proejct (6)
      • Error (18)
        • 개발환경 (10)
        • 트러블슈팅 (6)
      • Algorithm (12)
      • 개발환경 (1)
      • 회고 (2)
  • 홈
  • 태그
  • 방명록
Algorithm

[알고리즘 스터디] 10월 4주차 문제 0커플, 폴더폰자판

구름에서 진행하는 구름 LEVEL 1,2번 문제와 답 입니다. 1번 문제의 경우 딕셔너리를 사용해서 문제를 풀었습니다. 하지만 2번 문제의 경우 조건 설정을 시간 관계상 하지 못했기 때문에 오답 처리 되었습니다. 3주차 문제는 풀었지만 코드를 다시 볼 수 있는지 알았지만 나중에 다시 본인의 코드를 보지 못하는....(?) 특이한 구름 알고리즘 챌린지로 인해 포스팅하지 못했습니다 ㅜㅜ N = input() people = list(map(int, input().split())) temp = dict() result = [] for i in people: temp[str(abs(i))] = 0 for i in people: cnt = 1 if temp[str(abs(i))] == 1: cnt = 2 temp..

2022. 10. 23. 21:33
Algorithm

[알고리즘 스터디] 9월 3주차 문제 Island Perimeter

이번 주 알고리즘 문제는 [463. Island Perimeter] You are given row x col grid representing a map where grid[i][j] = 1 represents land and grid[i][j] = 0 represents water. Grid cells are connected horizontally/vertically (not diagonally). The grid is completely surrounded by water, and there is exactly one island (i.e., one or more connected land cells). The island doesn't have "lakes", meaning the water in..

2022. 9. 22. 22:08
Algorithm

[알고리즘 스터디] 9월 1주차 문제 4Sum, 유기농 배추

이번주 알고리즘 문제는 [4Sum] https://leetcode.com/problems/4sum/ 4Sum - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Given an array nums of n integers, return an array of all the unique quadruplets [nums[a], nums[b], nums[c], nums[d]] such that: 0

2022. 8. 31. 21:55
Algorithm

[알고리즘 스터디] 8월 4주차 문제 Add Two Numbers, Maximum Number of Groups Entering a Competition

이번주 알고리즘 문제는 [Maximum Number of Groups Entering a Competition] https://leetcode.com/problems/maximum-number-of-groups-entering-a-competition/ Maximum Number of Groups Entering a Competition - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com You are given a positive integer array gra..

2022. 8. 24. 20:43
Algorithm

[백준] 4375번 1 파이썬 초간단 문제 풀이

문제 풀이 처음에는 이게 뭐지? 했는데 3의 배수(3, 6, 9 , 12, ...)중에 1로만 이루어진 수 '111'은 3자리수기 때문에 3을 출력하고, 7의 배수(7, 14, 28, ...)중에 '1'로만 이루어진 수를 찾는 문제였습니다. 문제를 이해하니 간단하게 풀 수 있습니다. 저는 직관적으로 문자열을 1씩 더해가며 나누어 떨어지면 자릿수를 출력하도록 작성하였습니다. 이 문제는 종료 조건이 따로 명시되어 있지 않기 때문에 try except를 이용하여 EOFError가 발생하면 멈추도록 작성하였습니다. while True: try: n = int(input()) except EOFError: break total = '1' while True: if int(total) % n == 0: print(..

2022. 3. 17. 22:04
Algorithm

[백준] 1476번 날짜 계산 파이썬 문제 풀이

[문제 풀이] 위 문제는 브루트 포스 문제로 수의 범위가 넘어가면 1로 초기화해주면 되는 아주 간단한 문제이기 때문에 코드에 대한 설명은 생략하겠습니다. E, S, M = map(int, input().split()) year = 0 E1 = 0 S1 = 0 M1 = 0 while True: if E == E1 and S == S1 and M == M1: break year += 1 E1 += 1 S1 += 1 M1 += 1 if E1 > 15: E1 = 1 if S1 > 28: S1 = 1 if M1 > 19: M1 = 1 print(year)

2022. 3. 16. 21:48
  • «
  • 1
  • 2
  • »

공지사항

  • GitHub & WorkSpace

전체 카테고리

  • Development (144)
    • Languege (39)
      • Java & Spring (27)
      • C# & ASP.NET (5)
      • JavaScript (2)
      • Kotlin (5)
    • DB (0)
      • Oracle (0)
    • Study (72)
      • 네트워크 (3)
      • 이펙티브 자바 (41)
      • 우아한 테크 코스 (7)
      • Next Step (3)
      • Certificate (5)
      • Side Proejct (6)
    • Error (18)
      • 개발환경 (10)
      • 트러블슈팅 (6)
    • Algorithm (12)
    • 개발환경 (1)
    • 회고 (2)
애드센스 광고 영역
  • 최근 글
  • 최근 댓글

최근 글

최근댓글

태그

  • #TDD
  • #스프링부트
  • #객체지향
  • #자바
  • #개발자
  • #클라우드
  • #도메인 주도 개발
  • #코틀린
  • #구글 클라우드
  • #후기
  • #백엔드
  • #백준
  • #우테코
  • #이펙티브 자바
  • #김영한
  • #스프링
  • #김영한 스프링
  • #트러블슈팅
  • #BOJ
  • #이펙티브자바
  • #kotlin
  • #AWS
  • #제네릭
  • #Java
  • #spring boot
  • #saa
  • #GCP
  • #effective java
  • #spring
  • #파이썬
MORE

전체 방문자

오늘
어제
전체

블로그 인기글

Powered by Privatenote Copyright © 토마토의 개발일지 All rights reserved. TistoryWhaleSkin3.4

티스토리툴바