일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 프로그래머스
- leetcode
- JavaScript
- wai-aria
- react
- 카드뉴스
- TypeScript
- react-query
- 디자인
- 웹접근성
- 제로베이스 프론트엔드 스쿨
- programmers
- 정규표현식
- 비트연산자
- 알고리즘
- html&css
- Today
- Total
목록분류 전체보기 (53)
記錄

문제 링크: https://leetcode.com/problems/sort-the-people/ 난이도: Easy You are given an array of strings names, and an array heights that consists of distinct positive integers. Both arrays are of length n. For each index i, names[i] and heights[i] denote the name and height of the ith person. Return names sorted in descending order by the people's heights. Example 1: Input: names = ["Mary","John","Emm..

문제 링크: https://leetcode.com/problems/rotate-array/ 난이도: Medium Given an array, rotate the array to the right by k steps, where k is non-negative. 주어진 배열을 음수가 아닌 정수 k만큼 우측으로 회전시켜라. Example 1: Input: nums = [1,2,3,4,5,6,7], k = 3 Output: [5,6,7,1,2,3,4] Explanation: rotate 1 steps to the right: [7,1,2,3,4,5,6] rotate 2 steps to the right: [6,7,1,2,3,4,5] rotate 3 steps to the right: [5,6,7,1,2,3,4..

비트 연산(bitwise operation)은 한 개 혹은 두 개의 이진수에 대해 비트 단위로 적용되는 연산이다. 비트 연산은 정수나 정수로 변환 가능한 타입만 가능하며, 실수나 포인터 등은 비트 연산을 할 수 없다. 비트는 바이트 단위보다 더 작은 단위이며, 컴퓨터에서 사용할 수 있는 최소 단위이다. 우리가 흔히 사용하는 10진수가 아닌 2진수를 사용하며, 0과 1을 나타낸다. 비트연산자의 종류 비트연산자 설명 & 대응되는 비트가 모두 1이면 1을 반환함. (비트 AND 연산) | 대응되는 비트 중에서 하나라도 1이면 1을 반환함. (비트 OR 연산) ^ 대응되는 비트가 서로 다르면 1을 반환함. (비트 XOR 연산) ~ 비트를 1이면 0으로, 0이면 1로 반전시킴. (비트 NOT 연산) 부호를 유지하..

문제 링크: https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/ 난이도: Medium Given an array of integers nums sorted in non-decreasing order, find the starting and ending position of a given target value. If target is not found in the array, return [-1, -1]. You must write an algorithm with O(log n) runtime complexity. 오름차순으로 정렬된 정수 수의 배열이 주어지면, 주어진 목표 값의 시작 위치와 끝 위치를..

문제 링크: https://leetcode.com/problems/single-number/ 난이도: Easy Given a non-empty array of integers nums, every element appears twice except for one. Find that single one. You must implement a solution with a linear runtime complexity and use only constant extra space. 비어 있지 않은 정수 배열이 주어지면 모든 요소는 하나를 제외하고 두 번 나타납니다. 그 하나를 찾으십시오. 선형 런타임 복잡성이 있는 솔루션을 구현하고 일정한 추가 공간만 사용해야 합니다. Example 1: Input: nums ..

문제 링크: https://leetcode.com/problems/kth-largest-element-in-an-array/ 난이도: Medium Given an integer array nums and an integer k, return the kth largest element in the array. Note that it is the kth largest element in the sorted order, not the kth distinct element. You must solve it in O(n) time complexity. 정수 배열 nums와 정수 k가 주어지면 배열에서 k번째로 큰 요소를 반환합니다. k번째 고유 요소가 아니라 정렬된 순서에서 k번째로 가장 큰 요소라는 점에 유의하..

GTQ 수업 들었을 때 만들었던 카드뉴스 디자인 지금 보면 수정하고 싶은 부분이 좀 보이긴 하지만 그냥 올림

1. JavaScript 기본문법 2. JavaScript 함수/조건문/반복문 00 자바스크립트의 정의 자바스크립트(JavaScript, JS)는 웹페이지에서 복잡한 기능을 구현할 수 있도록 하는 스크립팅 언어 또는 프로그래밍 언어이다. HTML이 웹 콘텐츠의 기본 구조와 의미를 정의하고, CSS는 HTML 콘텐츠에 색상, 글꼴, 레이아웃 등 스타일을 적용한다면, JavaScript 는 웹페이지의 동적 콘텐츠를 바꾸고, 멀티미디어를 제어하고, 애니메이션을 추가하는 등 각종 기능을 만들 수 있다. 본래는 브라우저에서 쓸 목적으로 고안된 언어이나, 현재는 다양한 환경에서 활용되고 있다. 01 코드 구조 자바스크립트 문법의 대부분은 C, C++, Java로부터 차용하여 제작되었으며, 다수의 표현식(expres..