위지원의 데이터 일기 🐈
Home
  • 분류 전체보기 (563)
    • ✎ 2025년 (4)
    • 2024년 (16)
    • 2023년 (6)
    • 2022년 (35)
      • Developement (22)
      • Error (9)
    • 2021년 (68)
      • ERROR (9)
      • 알고리즘 (11)
      • 개발공부 (21)
      • Data (15)
      • 21.下 (12)
    • 2020년 (164)
      • 코테 (84)
      • Development (29)
      • 정처기 (41)
    • 2019년 (27)
    • 2018년 (89)
      • English Speaking (8)
      • Error (12)
      • C, Java, FileSystem (13)
      • DataBase (15)
      • Java (2)
      • 지식 (16)
      • Go (3)
      • spark (9)
      • 영어 (5)
      • 알고리즘 (6)
    • 2017년 (143)
      • Error (17)
      • machine learning (16)
      • Spark (20)
      • Database (19)
      • Python (17)
      • Spring (9)
      • etc. (10)
      • 백준 (5)
      • Google Platform (12)
      • web Development (7)
      • Docker (3)
      • Linux (8)
Home
  • 분류 전체보기 (563)
    • ✎ 2025년 (4)
    • 2024년 (16)
    • 2023년 (6)
    • 2022년 (35)
      • Developement (22)
      • Error (9)
    • 2021년 (68)
      • ERROR (9)
      • 알고리즘 (11)
      • 개발공부 (21)
      • Data (15)
      • 21.下 (12)
    • 2020년 (164)
      • 코테 (84)
      • Development (29)
      • 정처기 (41)
    • 2019년 (27)
    • 2018년 (89)
      • English Speaking (8)
      • Error (12)
      • C, Java, FileSystem (13)
      • DataBase (15)
      • Java (2)
      • 지식 (16)
      • Go (3)
      • spark (9)
      • 영어 (5)
      • 알고리즘 (6)
    • 2017년 (143)
      • Error (17)
      • machine learning (16)
      • Spark (20)
      • Database (19)
      • Python (17)
      • Spring (9)
      • etc. (10)
      • 백준 (5)
      • Google Platform (12)
      • web Development (7)
      • Docker (3)
      • Linux (8)
블로그 내 검색
포트폴리오

위지원의 데이터 일기 🐈

데이터를 사랑하고 궁금해하는 기록쟁이입니다! 😉 Super Data Girl이 되는 그날까지🏃‍♀️ 화이팅!

  • 🖥 깃블로그
  • 🌍 위키원
  • 📑 내맘대로 스크랩
  • 💌 메일
  • 2020년/코테

    [코테 연습] Maximum Number of Coins You Can Get

    2020. 9. 9. 16:38

    by. 위지원

    https://leetcode.com/problems/maximum-number-of-coins-you-can-get/

     

    Maximum Number of Coins You Can Get - 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

    There are 3n piles of coins of varying size, you and your friends will take piles of coins as follows:

    • In each step, you will choose any 3 piles of coins (not necessarily consecutive).
    • Of your choice, Alice will pick the pile with the maximum number of coins.
    • You will pick the next pile with maximum number of coins.
    • Your friend Bob will pick the last pile.
    • Repeat until there are no more piles of coins.

    Given an array of integers piles where piles[i] is the number of coins in the ith pile.

    Return the maximum number of coins which you can have.

    문제 푸는데 걸린 시간 : 20분
    문제 이해를 잘못해서 헛수고했다 10분이나 ㅡㅡ;;

     

     

    저작자표시 (새창열림)

    '2020년 > 코테' 카테고리의 다른 글

    [코테연습] Combination Sum III  (0) 2020.09.14
    [코테 연습] Compare Version Numbers  (0) 2020.09.13
    [코테 연습] Largest Perimeter Triangle  (0) 2020.09.09
    [코테 연습] Relative Sort Array  (0) 2020.09.09
    [코테 연습] Sum of Root To Leaf Binary Numbers  (0) 2020.09.09

    잠깐만요~! 읽으신김에 이런 글들은 어떠세요? 👀

    • [코테연습] Combination Sum III 2020.09.14
    • [코테 연습] Compare Version Numbers 2020.09.13
    • [코테 연습] Largest Perimeter Triangle 2020.09.09
    • [코테 연습] Relative Sort Array 2020.09.09
    맨 위로
전체 글 보기
Tistory 로그인
Tistory 로그아웃
로그아웃 글쓰기 관리

열정! 열정! 열정! 🔥

Designed by Nana
블로그 이미지
위지원
데이터 엔지니어로 근무 중에 있으며 데이터와 관련된 일을 모두 좋아합니다!. 특히 ETL 부분에 관심이 가장 크며 데이터를 빛이나게 가공하는 일을 좋아한답니다 ✨

티스토리툴바

티스토리툴바