LeetCode342 leetcode 2951. Find the Peaks https://leetcode.com/problems/find-the-peaks/description/ Find the Peaks - LeetCode Can you solve this real interview question? Find the Peaks - You are given a 0-indexed array mountain. Your task is to find all the peaks in the mountain array. Return an array that consists of indices of peaks in the given array in any order. Notes: * A p leetcode.com 123456789class Solution: def findPeaks(self,.. 2023. 12. 27. leetcode 2956. Find Common Elements Between Two Arrays https://leetcode.com/problems/find-common-elements-between-two-arrays/description/ Find Common Elements Between Two Arrays - LeetCode Can you solve this real interview question? Find Common Elements Between Two Arrays - You are given two 0-indexed integer arrays nums1 and nums2 of sizes n and m, respectively. Consider calculating the following values: * The number of indices i such that leetcode.. 2023. 12. 27. leetcode 2965. Find Missing and Repeated Values https://leetcode.com/problems/find-missing-and-repeated-values/description/ Find Missing and Repeated Values - LeetCode Can you solve this real interview question? Find Missing and Repeated Values - You are given a 0-indexed 2D integer matrix grid of size n * n with values in the range [1, n2]. Each integer appears exactly once except a which appears twice and b which is mi leetcode.com 12345678.. 2023. 12. 27. leetcode 185 department-top-three-salaries/description https://leetcode.com/problems/department-top-three-salaries/description/ Department Top Three Salaries - LeetCode Can you solve this real interview question? Department Top Three Salaries - Table: Employee +--------------+---------+ | Column Name | Type | +--------------+---------+ | id | int | | name | varchar | | salary | int | | departmentId | int | +-------------- leetcode.com 1 2 3 4 5 6 7 .. 2023. 11. 16. leetcode 2798. Number of Employees Who Met the Target https://leetcode.com/problems/number-of-employees-who-met-the-target/description/ Number of Employees Who Met the Target - LeetCode Can you solve this real interview question? Number of Employees Who Met the Target - There are n employees in a company, numbered from 0 to n - 1. Each employee i has worked for hours[i] hours in the company. The company requires each employee to work for leetcode.c.. 2023. 8. 4. leetcode 2744. Find Maximum Number of String Pairs https://leetcode.com/problems/find-maximum-number-of-string-pairs/description/ Find Maximum Number of String Pairs - LeetCode Can you solve this real interview question? Find Maximum Number of String Pairs - You are given a 0-indexed array words consisting of distinct strings. The string words[i] can be paired with the string words[j] if: * The string words[i] is equal to the rev leetcode.com 1 .. 2023. 7. 13. leetcode 2769. Find the Maximum Achievable Number https://leetcode.com/problems/find-the-maximum-achievable-number/description/ - LeetCode Can you solve this real interview question? - You are given two integers, num and t. An integer x is called achievable if it can become equal to num after applying the following operation no more than t times: * Increase or decrease x by 1, and simultaneou leetcode.com 1 2 3 class Solution: def theMaximumAch.. 2023. 7. 13. leetcode 2739. Total Distance Traveled https://leetcode.com/problems/total-distance-traveled/description/ Total Distance Traveled - LeetCode Can you solve this real interview question? Total Distance Traveled - A truck has two fuel tanks. You are given two integers, mainTank representing the fuel present in the main tank in liters and additionalTank representing the fuel present in the addition leetcode.com 1 2 3 4 5 6 7 8 9 10 11 12.. 2023. 7. 7. leetcode 2651. Calculate Delayed Arrival Time https://leetcode.com/problems/calculate-delayed-arrival-time/description/ Calculate Delayed Arrival Time - LeetCode Can you solve this real interview question? Calculate Delayed Arrival Time - You are given a positive integer arrivalTime denoting the arrival time of a train in hours, and another positive integer delayedTime denoting the amount of delay in hours. Return leetcode.com 1 2 3 class S.. 2023. 7. 6. leetcode 2544. Alternating Digit Sum https://leetcode.com/problems/alternating-digit-sum/description/ Alternating Digit Sum - LeetCode Can you solve this real interview question? Alternating Digit Sum - You are given a positive integer n. Each digit of n has a sign according to the following rules: * The most significant digit is assigned a positive sign. * Each other digit has an opposit leetcode.com 1 2 3 4 5 6 7 8 9 10 11 class .. 2023. 7. 3. leetcode 2595. Number of Even and Odd Bits https://leetcode.com/problems/number-of-even-and-odd-bits/description/ Number of Even and Odd Bits - LeetCode Can you solve this real interview question? Number of Even and Odd Bits - You are given a positive integer n. Let even denote the number of even indices in the binary representation of n (0-indexed) with value 1. Let odd denote the number of odd indices in leetcode.com 1 2 3 4 5 6 7 8 9 .. 2023. 6. 27. leetcode 2716. Minimize String Length https://leetcode.com/problems/minimize-string-length/description/ Minimize String Length - LeetCode Can you solve this real interview question? Minimize String Length - Given a 0-indexed string s, repeatedly perform the following operation any number of times: * Choose an index i in the string, and let c be the character in position i. Delete the closest leetcode.com 1 2 3 4 5 class Solution: de.. 2023. 6. 27. 이전 1 ··· 3 4 5 6 7 8 9 ··· 29 다음