• Skip to primary navigation
  • Skip to content
  • Skip to footer
Yuting Blog
  • About
  • Tags
  • Posts
  • Yuting Projects
    阿葛廷

    阿葛廷

    人一定要靠自己!

    • Taiwan
    • Yuting Daily Seed
    • Yuting DL Dream
    • Yuting PokeGo Gallery
    • Yuting Object Detection
    • GitHub

    HackerRank: Mark and Toys

    January 14, 2020 less than 1 minute read

    Tags: hackerrank, 紮馬步

    Mark and Toys

    Imgur

    • python
    # Complete the maximumToys function below.
    def maximumToys(prices, k):
        max_unit = 0
        prices.sort()
        for i_price in prices:
            k = k - i_price
            if k >= 0:
                max_unit += 1
            else:
                break
        return max_unit
    

    Tags: hackerrank, 紮馬步

    Updated: January 14, 2020

    Twitter Facebook LinkedIn
    Previous Next

    You May Also Enjoy

    daily Programming: 寶哥出場 品質保證 又見 GitHub Copilot!

    October 25, 2024 1 minute read

    又見面拉~~~

    daily Programming: Azure AI Search

    September 27, 2024 less than 1 minute read

    Github:azure-search-openai-demo

    當你覺得對方很G8討厭的時候,放面鏡子照照自己剛剛的行為先吧!

    December 14, 2023 less than 1 minute read

    控制你的情緒&語氣

    daily Programming: 寶哥出場 品質保證 GitHub Copilot

    December 13, 2023 less than 1 minute read

    GitHub Copilot 協作開發實戰 - 學員課前注意事項

    。做人如果沒夢想,跟鹹魚有什麼區別 !
    • GitHub
    © 2024 Yuting Blog. Powered by Jekyll & Minimal Mistakes.