[ 🏠 Home / πŸ“‹ About / πŸ“§ Contact / πŸ† WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/css/ - CSS Masters

Advanced styling, animations & modern CSS techniques
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1754617513082.jpg (1014.97 KB, 1568x2396, img_1754617500506_thqz2sre.jpg)

dbfe3 No.287

I've been diving deep into some coding challenges lately, and I stumbled upon something pretty neat - Leetcode 808: Soup Serving! So here's the deal. We got two soups, A and B, each starting with n mL. Each turn, our program takes a lucky dip from four possible serving operations (each with a 25% chance): 1. Pour 100mL from A, nothing from B 2. Pour 75mL from A, 25mL from B 3. Pour 50mL from A, 50mL from B 4. Pour 25mL from A, 75mL from B The game ends when one of the soups runs dry! But what if it asks to serve more than what's left… that'd be awkward, right? I found this problem really fun and thought you guys might enjoy solving it too. Let me know how you tackle it! Happy coding, [Your Name


[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / πŸ“‹ About / πŸ“§ Contact / πŸ† WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">