개발공부
[JavaScript]45. Jump Game II
45. Jump Game II Given an array of non-negative integers nums, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Your goal is to reach the last index in the minimum number of jumps. You can assume that you can always reach the last index. Example 1: Input: nums = [2,3,1,1,4] Output: 2 Explanation: The min..
[JavaScript] 991. Broken Calculator 쉬운 설명
991. Broken Calculator There is a broken calculator that has the integer startValue on its display initially. In one operation, you can: multiply the number on display by 2, or subtract 1 from the number on display. Given two integers startValue and target, return the minimum number of operations needed to display target on the calculator. Example 1: Input: startValue = 2, target = 3 Output: 2 E..
[React] API 불러오기
API를 불러오기 앞서 axios를 먼저 react에 설치해 주어야 합니다. Axios에 대한 다큐먼트는 아래 링크에서 확인하실수 있습니다. Getting Started | Axios Docs Getting Started Promise based HTTP client for the browser and node.js What is Axios? Axios is a promise-based HTTP Client for node.js and the browser. It is isomorphic (= it can run in the browser and nodejs with the same codebase). On the server-side it u axios-http.com Axios 설치 npm i ax..
[Javascript] 1663. Smallest String With A Given Numeric Value -쉬운 설명
1663. Smallest String With A Given Numeric Value The numeric value of a lowercase character is defined as its position (1-indexed) in the alphabet, so the numeric value of a is 1, the numeric value of b is 2, the numeric value of c is 3, and so on. The numeric value of a string consisting of lowercase characters is defined as the sum of its characters' numeric values. For example, the numeric va..