| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
- 비트연산
- node.js
- route
- axios
- Props
- React
- count
- component
- treenode
- nodeJS
- c++
- server
- routes
- array
- Callback
- leetcode
- css
- Context
- JSX
- queue
- UE5
- map
- BinaryTree
- priority_queue
- MySQL
- bit
- DP
- event
- Navigation
- state
- Today
- Total
목록map (3)
우사미 코딩
animals 배열에 담겨있는 요소를 배열을 순회하면서 AnimalShow라는 컴포넌트를 만들고 컴포넌트의 type이라는 속성 값으로 배열의 각 요소를, key의 속성 값으로 현재 index를 props로 넘겨주고 싶은데여 그럼 map을 사용하면 됨! * App.js import AnimalShow from "./AnimapShow"; import { useState } from "react"; function getRandomAnimal(){ const animals = ['bird','cat','cow','dog','gator', 'horse']; return animals[Math.floor(Math.random() * animals.length)]; } function App(){ const[an..
1. 문제링크 https://leetcode.com/problems/course-schedule-ii/ Course Schedule II - LeetCode Can you solve this real interview question? Course Schedule II - There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array prerequisites where prerequisites[i] = [ai, bi] indicates that you must take leetcode.com a과목의 선수과목이 b일 때 vector = {a, b};로 표시한다. ..
1. 문제링크 Verifying an Alien Dictionary - LeetCode Can you solve this real interview question? Verifying an Alien Dictionary - In an alien language, surprisingly, they also use English lowercase letters, but possibly in a different order. The order of the alphabet is some permutation of lowercase letters. leetcode.com 2. 문제 파악하기 먼저 이 주옥같은 문제는 이해하는데 조금 시간이 걸렸다 나만 이해못했나 해서 discussion에 들어가서 봤는데 문제를 이..