본문 바로가기

이 험난한 세상에서어어~

검색하기
이 험난한 세상에서어어~
프로필사진 토끼띠NJW

  • 분류 전체보기 (105)
    • github (1)
    • algorithm (78)
      • 유형 (4)
      • 코딩 테스트 (73)
    • Spring (3)
      • error (3)
      • comment (0)
    • 회고 (3)
    • 이론 (7)
      • http (4)
      • JPA, Spring, Spring boot (2)
    • 네트워크 & 인프라 (1)
      • AWS (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   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
Tags
  • spring
  • error
  • glod5
  • leetcode 69
  • siver3
  • LCS
  • gold5
  • AWS
  • 프로그래머스
  • java
  • leetcode
  • Kakao
  • Gold4
  • PYTHON
  • LEVEL2
  • LEVEL1
  • 백준
  • 개념
  • 배포
  • mysql
  • jpa
  • Thymeleaf
  • gold2
  • 구현
  • HTML
  • CSS
  • 백엔드
  • 9252
  • glod4
  • 오류
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록135 (1)

이 험난한 세상에서어어~

leetcode 135, Candy(java)

문제 설명 n 명의 아이들이 서 있다. 각 아이들은 정수로 된 ratings을 부여받는다. 이때 아래의 요청에 따라 아이들에게 사탕을 나누어 준다. 각 아이들은 적어도 하나의 사탕을 가지고 있어야 한다. 그들의 이웃보다 더 rating이 크다면 해당 아이는 더 많은 사탕을 가져야 한다. 아이들에게 나눠줄 수 있는 사탕의 최소 개수를 구하여라. https://leetcode.com/problems/candy/ Candy - LeetCode Can you solve this real interview question? Candy - There are n children standing in a line. Each child is assigned a rating value given in the integer..

algorithm/코딩 테스트 2023. 9. 13. 10:16
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바