목록분류 전체보기 (374)
Silver Library (Archived)
useLocation, 이건 query parameter 를 받아오는 용도로 알려져 있는데 한번 간략히 상기삼아 기록해보겠습니다. useLocation? This hook returns the current location object. This can be useful if you'd like to perform some side effect whenever the current location changes. import * as React from 'react'; import { useLocation } from 'react-router-dom'; function App() { let location = useLocation(); React.useEffect(() => { // Google Anal..
// 예시 import { useParams } from "react-router-dom"; function Alpha() { const { id } = useParams(); const package = AlphaList[id]; return ( {package.name} Main Stacks: {package.skills} ... ); } 아마 react-router-dom 으로 해본 것들은 이런 식으로 정리 해 나가지 않을까 싶네요. 다른 분들이 더 잘 적어 두었을테니 이번에도 나만의 공책이란 느낌으로 적어보고자 합니다. useParams() hook 이란 뭘까요? 일단 이건 react-router-dom 에서 지원되는 건데, 주 기능은 아래와 같습니다. 주 기능. parameter(매게변수) 의 ..
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice. You can return the answer in any order. Example. Input: nums = [2,7,11,15], target = 9 Output: [0,1] Explanation: Because nums[0] + nums[1] == 9, we return [0, 1]. 기록. ..
수학 적 용어 설명은 아래 링크를. Polynomials Polynomials A polynomial looks like this: example of a polynomial this one has 3 terms Polynomial comes from poly- (meaning "many") and -nomial (in this case meaning "term") ... so it says "many terms" Polynomials with one variable make nice smooth curves: www.mathsisfun.com Leetcode 를 고려한 기록. 적어도 O(n), 2 log n 같은 걸 어떻게 해석하는 지 정도는 알겠습니다. 이제, 남은건 Big O notation 에서 ..