Coding Problems
Count Patients by Age Group
MediumCount how many patients fall into age groups: Child (<18), Adult (18-65), Senior (>65).
Group Messages by Sender
MediumGroup messages by sender in a dictionary.
Count Total Messages
EasyGiven a list of messages, count the total number sent.
Sort Posts by Likes
MediumSort a list of posts by the number of likes in descending order.
Filter products within a given price range.
Recommend Similar Products
MediumGiven a product category, suggest similar products from a dictionary.
Find Cheapest Product
MediumGiven a list of products, return the cheapest one.
Apply Discount to Cart
MediumApply a discount percentage to the total cart value.
Calculate Cart Total
EasyGiven a list of products with prices, calculate the total cart value.