- Today
- Total
목록전체 글 (384)
작심삼일
문제 링크: https://leetcode.com/problems/push-dominoes/ 문제 There are n dominoes in a line, and we place each domino vertically upright. In the beginning, we simultaneously push some of the dominoes either to the left or to the right. After each second, each domino that is falling to the left pushes the adjacent domino on the left. Similarly, the dominoes falling to the right push their adjacent domi..
문제 링크: https://leetcode.com/problems/satisfiability-of-equality-equations/ 문제 You are given an array of strings equations that represent relationships between variables where each string equations[i] is of length 4 and takes one of two different forms: "xi==yi" or "xi!=yi".Here, xi and yi are lowercase letters (not necessarily different) that represent one-letter variable names. Return true if i..
문제 링크: https://leetcode.com/problems/concatenation-of-consecutive-binary-numbers/ 문제 Given an integer n, return the decimal value of the binary string formed by concatenating the binary representations of 1 to n in order, modulo $10^9+7$. 조건 1
문제 링크: https://leetcode.com/problems/reverse-words-in-a-string-iii/ 문제 Given a string s, reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. 조건 1
문제 링크: https://leetcode.com/problems/sum-of-even-numbers-after-queries/ 문제 You are given an integer array nums and an array queries where queries[i] = $[val_i, index_i].$ For each query i, first, apply $nums[index_i] = nums[index_i]+val_i$, then print the sum of the even values of nums. Return an integer array answer where answer[i] is the answer to the $i^{th}$ query. 조건 1
문제 링크: https://leetcode.com/problems/maximum-length-of-repeated-subarray/ 문제 Given two integer arrays nums1 and nums2, return the maximum length of a subarray that appears in both arrays. 조건 1
문제 링크: https://leetcode.com/problems/find-duplicate-file-in-system/ 문제 Given a list paths of directory info, including the directory path, and all the files with contents in this directory, return all the duplicate files in the file system in terms of their paths. You may return the answer in any order. A group of duplicate files consists of at least two files that have the same content. A singl..
문제 링크: https://leetcode.com/problems/find-original-array-from-doubled-array/ 문제 An integer array original is transformed into a doubled array changed by appending twice the value of every element in original, and then randomly shuffling the resulting array. Given an array changed, return original if changed is a doubled array. If changed is not a doubled array, return an empty array. The element..