본문 바로가기

릿코드14

[LeetCode] (Strings) Lv Easy. Reverse Integer https://leetcode.com/explore/interview/card/top-interview-questions-easy/127/strings/880/ Explore - LeetCode LeetCode Explore is the best place for everyone to start practicing and learning on LeetCode. No matter if you are a beginner or a master, there are always new topics waiting for you to explore. leetcode.com /** * @param {number} x * @return {number} */ function t1(x) { let result = parse.. 2023. 1. 16.
[LeetCode] (Array) Lv Easy. Best Time to Buy and Sell Stock II https://leetcode.com/explore/interview/card/top-interview-questions-easy/92/array/564/ Explore - LeetCode LeetCode Explore is the best place for everyone to start practicing and learning on LeetCode. No matter if you are a beginner or a master, there are always new topics waiting for you to explore. leetcode.com /** * @param {number[]} prices * @return {number} */ var maxProfit = function (price.. 2023. 1. 16.
[LeetCode] (Array) Lv Easy. Remove Duplicates from Sorted Array https://leetcode.com/explore/interview/card/top-interview-questions-easy/92/array/727/ Explore - LeetCode LeetCode Explore is the best place for everyone to start practicing and learning on LeetCode. No matter if you are a beginner or a master, there are always new topics waiting for you to explore. leetcode.com /** * @param {number[]} nums * @return {number} */ var removeDuplicates = function(n.. 2023. 1. 14.
[LeetCode] (Array) Lv Easy. Find Target Indices After Sorting Array https://leetcode.com/problems/find-target-indices-after-sorting-array/description/ Find Target Indices After Sorting Array - LeetCode Find Target Indices After Sorting Array - You are given a 0-indexed integer array nums and a target element target. A target index is an index i such that nums[i] == target. Return a list of the target indices of nums after sorting nums in non-decreasing o leetcod.. 2023. 1. 12.