LeetCode

LeetCode

[LeetCode] 909. Snakes and Ladders [도전중]

LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 뱀과 사다리가있는 Board가 주어집니다. 출발지는 왼쪽 최하단이고 목적지는 n*2입니다. n*2에 도달하는데 필요한 최소이동수를 반환합니다. 만약 n*2에 도달할 수 없다면 -1을 반환합니다. Example 1: Input: board = [ [-1,-1,-1,-1,-1,-1], [-1,-1,-1,-1,-1,-..

LeetCode

[LeetCode] 133. Clone Graph

LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 연결된 방향이 없는 그래프에서 노드의 참조가 주어집니다. 그래프의 복제본을 반환합니다. 그래프의 각 노드는 값(int)과 이웃 노드의 목록(List[Node])을 포함합니다. Example 1: Input: adjList = [[2,4],[1,3],[2,4],[1,3]] Output: [[2,4],[1,3],[2..

LeetCode

[LeetCode] 373. Find K Pairs with Smallest Sums

Find K Pairs with Smallest Sums - LeetCode Can you solve this real interview question? Find K Pairs with Smallest Sums - You are given two integer arrays nums1 and nums2 sorted in non-decreasing order and an integer k. Define a pair (u, v) which consists of one element from the first array and one leetcode.com 오름차순 정렬된 두 개의 정수 배열 nums1과 nums2와 정수 k가 주어집니다. 첫 번째 배열의 원소 1개와 두 번째 배열의 원소 1개로 구성된 쌍(u..

LeetCode

[LeetCode] 215. Kth Largest Element in an Array

Kth Largest Element in an Array - LeetCode Can you solve this real interview question? Kth Largest Element in an Array - 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 eleme leetcode.com 정수 배열 num과 정수 k가 주어지면 배열에서 k번째로 큰 요소를 반환합니다. k번째 고유 요소가 아니라 정렬된 순서에서 k번째로 큰 요소라는 점에 유..

Sol b
'LeetCode' 카테고리의 글 목록