일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 테이블 해시 함수
- 중첩 점
- 헤르메스 엔진
- nextjs
- 귤 고르기
- 날짜 테스트
- 연결 요소 제거하기
- 구름톤 챌린지
- 통신망분석
- nextjs-performance
- 호텔 대실
- Google 애널리틱스
- Jest uuid syntax
- JavaScript
- 프로그래머스
- ResizeObserver
- 자바스크립트
- mock date
- 테스트 Date
- 최솟갑 구하기
- Hermes Engine
- jest
- create-next-app
- 리액트네이티브 엔진
- Leetcode #javascript #알고리즘 #Algorithms #js
- 구름톤
- 리액트네이티브
- 과제 진행하기
- 구름톤챌린지
- mutationobserver
- Today
- Total
목록Algorithms/leetcode (9)
나만보는개발공부블로그

Given the head of a singly linked list, reverse the list, and return the reversed list. Example 1: Input: head = [1,2,3,4,5] Output: [5,4,3,2,1] Example 2: Input: head = [1,2] Output: [2,1] /** * Definition for singly-linked list. * function ListNode(val, next) { * this.val = (val===undefined ? 0 : val) * this.next = (next===undefined ? null : next) * } */ /** * @param {ListNode} head * @return ..
Given a string s, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Example 1: Input: s = "A man, a plan, a canal: Panama" Output: true Explanation: "amanaplanacanalpanama" is a palindrome. Example 2: Input: s = "race a car" Output: false Explanation: "raceacar" is not a palindrome. var isPalindrome = function(s) { let d = s.toLowerCase().replace(/[^a-..
설명 Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Clarification: What should we return when needle is an empty string? This is a great question to ask during an interview. For the purpose of this problem, we will return 0 when needle is an empty string. This is consistent to C's strstr() and Java's indexOf(). Example 1..

설명 - Merge two sorted linked lists and return it as a sorted list. The list should be made by splicing together the nodes of the first two lists. - 두개의 정렬된 연결리스트들을 합쳐진 리스트로 반환하라. Merge two sorted link- ed lists and return it as a Example 1: Input: l1 = [1,2,4], l2 = [1,3,4] Output: [1,1,2,3,4,4] Example 2: Input: l1 = [], l2 = [] Output: [] Example 3: Input: l1 = [], l2 = [0] Output: [0] functio..
You are climbing a staircase. It takes n steps to reach the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? Example 1: Input: n = 2 Output: 2 Explanation: There are two ways to climb to the top. 1. 1 step + 1 step 2. 2 steps Example 2: Input: n = 3 Output: 3 Explanation: There are three ways to climb to the top. 1. 1 step + 1 step + 1 step 2...
문제 설명 - Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Example 1: Input: strs = ["flower","flow","flight"] Output: "fl" Example 2: Input: strs = ["dog","racecar","car"] Output: "" Explanation: There is no common prefix among the input strings. 문자열이 있는 배열들 중에서 같은 문자를 가진 가장 긴 공통 앞문자열을 반환하는 함수를 작성하라. /*..