GoCalf Calf 的自留地 · 昙花一现

全站内容

difficult

  • 3213. Construct String with Minimum Cost

    Coding

    #Problem You are given a string target, an array of strings words, and an integer array costs, both arrays of the same length. Imagine an empty string s. You can perform the following operation any number of times (including zero): Choose …

    hard difficult
  • 2809. Minimum Time to Make Array Sum At Most x

    Coding

    #Problem You are given two 0-indexed integer arrays nums1 and nums2 of equal length. Every second, for all indices 0 <= i < nums1.length, value of nums1[i] is incremented by nums2[i]. After this is done, you can do the following operation: …

    hard difficult
  • 2699. Modify Graph Edge Weights

    Coding

    #Problem You are given an undirected weighted connected graph containing n nodes labeled from 0 to n - 1, and an integer array edges where edges[i] = [aᵢ, bᵢ, wᵢ] indicates that there is an edge between nodes aᵢ and bᵢ with weight wᵢ. Some …

    hard difficult
  • 1719. Number Of Ways To Reconstruct A Tree

    Coding

    #Problem You are given an array pairs, where pairs[i] = [xᵢ, yᵢ], and: There are no duplicates. xᵢ < yᵢ Let ways be the number of rooted trees that satisfy the following conditions: The tree consists of nodes whose values appeared in pairs. …

    hard difficult todo
  • 1982. Find Array Given Subset Sums

    Coding

    #Problem You are given an integer n representing the length of an unknown array that you are trying to recover. You are also given an array sums containing the values of all 2ⁿ subset sums of the unknown array (in no particular order). …

    hard difficult
  • 1531. String Compression II

    Coding

    #Problem Run-length encoding is a string compression method that works by replacing consecutive identical characters (repeated 2 or more times) with the concatenation of the character and the number marking the count of the characters …

    hard difficult
  • 3235. Check if the Rectangle Corner Is Reachable

    Coding

    #Problem You are given two positive integers xCorner and yCorner, and a 2D array circles, where circles[i] = [xᵢ, yᵢ, rᵢ] denotes a circle with center at (xᵢ, yᵢ) and radius rᵢ. There is a rectangle in the coordinate plane with its bottom …

    hard difficult