Snowflake OA – snowflake OA Shopping Cart Billing – snowflake OA Sequential String-snowflake Coding Challenge Walkthrough-Coloring Houses-雪花OA

snowflake的OA以高难度著称,但是面对我们的专业团队,这却显得非常简单,看看我们轻松获得满分的案例吧。

Snowflake's OA is known for its high difficulty, but when faced with our professional team, it seems very simple. Let's take a look at the case where we easily achieved full marks.

Shopping Cart Billing

    An e-commerce company is currently celebrating ten years in business. They are having a sale to honor their privileged members, those who have been using their services for the past five years. They receive the best discounts indicated by any discount tags attached to the product. Determine the minimum cost to purchase all products listed. As each potential price is calculated, truncate it to its integer part before adding it to the total. Return the cost to purchase all items as an integer.

    There are three types of discount tags:

    • Type 0: discounted price, the item is sold for a given price.
    • Type 1: percentage discount, the customer is given a fixed percentage discount from the retail price.
    • Type 2: fixed discount, the customer is given a fixed amount off from the retail price.

    Example:
    products = [['10', 'd0', 'd1'], ['15', 'EMPTY', 'EMPTY'], ['20', 'd1', 'EMPTY']]
    discounts = [['d0', '1', '27'], ['d1', '2', '5']]

    The products array elements are in the form ['price', 'tag 1', 'tag 2', …, 'tag m-1']. There may be zero or more discount codes associated with a product. Discount tags in the products array may be 'EMPTY', which is the same as a null value. The discounts array elements are in the form ['tag', 'type', 'amount'].

    1. If a privileged member buys product 1 listed at a price of 10 with two discounts available:
    • Under discount 'd0' of type 1, the discounted price is 10 - (10 * 0.27) = 7.30, rounded to 7.
    • Under discount 'd1' of type 2, the discounted price is 10 - 5.

    我们提供OA代做服务,请注意,如果你是在OA的过程中搜索到本文,那么不幸的是我们将无法为您服务。得益于我们优质的服务和有竞争力的价格,我们的OA代做服务必须要预约才能够实行。我们的OA代做是一项收费服务,如果是希望免费获得答案的人不要联系我们

    We provide OA agency services. Please note that if you search for this article during the OA process, unfortunately, we will not be able to serve you. Thanks to our high-quality service and competitive pricing, our OA outsourcing service requires an appointment to be implemented. Our OA agency is a paid service. If you want to get answers for free, please do not contact us.

    联系我,查看题目全文。OA代做,代面试,面试代面,面试辅助。联系我 我们公开透明报价,做华人社区面试suport第一品牌。

    Leave a Reply

    Your email address will not be published. Required fields are marked *