Sort by

recency

|

18 Discussions

|

  • + 0 comments

    def coveringStains(k, coordinates): def get_bound(coords): mi_x,mi_y = float("inf"), float("inf") ma_x,ma_y = float("-inf"), float("-inf")

        for x,y in coords:
            mi_x = min(mi_x, x)
            ma_x = max(ma_x, x)
            mi_y = min(mi_y, y)
            ma_y = max(ma_y, y)
    
        return mi_x, mi_y, ma_x, ma_y
    
    bound = get_bound(coordinates)
    n = len(coordinates)
    count=0
    
    for combo in combinations(coordinates, n-k):
        combo_bound = get_bound(combo)
        if combo_bound != bound:
            count+=1
    
    return count 
    
  • + 0 comments

    Here is my solution in java, javascript, python, C, C++, Csharp HackerRank Covering the stains Problem Solution

  • + 0 comments

    Here is Covering the stains problem solution - https://programs.programmingoneonone.com/2021/07/hackerrank-covering-the-stains-problem-solution.html

  • + 2 comments

    I often have guests over, all of us do not fit in my living room. I'm thinking of buying a large sectional sofa, can you tell me where I can get one? Only that it was not made of slats, but a full-fledged spring block.

  • + 0 comments

    Eliminating Slipper Stains Do you work as an upholsterer or textile restorer, or do you just appreciate fine antique furniture? Regardless of your field of Homemade cleaning solution expertise, you need to be aware of the potential dangers of stains caused by slippers. Slipper stains can be disastrous to any antique furniture and should be handled as soon as possible. Sometimes the stains may go unnoticed, and then they will start to take over and ruin other parts of the furniture. To avoid this, you should take a few precautions and do your best to care for and protect your furniture. One way to care for your furniture is to consider purchasing a set of slipper pouches.