깡니즈 개발로그

깡니즈 개발로그

  • 분류 전체보기 (44)
    • 운영체제 (6)
    • 알고리즘 (38)
  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록
  • Github @gaonK
RSS 피드
로그인
로그아웃 글쓰기 관리

깡니즈 개발로그

컨텐츠 검색

태그

이항계수 BFS 다이나믹프로그래밍 그리디 백준 MAP 순열 프로그래머스 OS 분할정복 탐욕법 에라토스테네스의체 permutation 트리 운영체제 이분탐색 알고리즘 백트래킹 수학 DP

최근글

댓글

공지사항

아카이브

알고리즘(38)

  • [LeetCode] Product of Array Except Self

    2020.01.04
  • [LeetCode] Top K Frequent Elements

    2019.12.31
  • [LeetCode] Generate Parentheses

    2019.12.30
  • [LeetCode] Permutations

    2019.12.23
  • [LeetCode] Binary Tree Inorder Traversal

    2019.12.21
  • [프로그래머스] 단어 변환

    2019.10.30
[LeetCode] Product of Array Except Self

Product of Array Except Self - LeetCode 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 Given an array nums of n integers where n > 1, return an array output such that output[i] is equal to the product of all the elements of nums except nums[i]. Example: Input: [1,2,3,4] Output: [24,12,8,6]..

2020. 1. 4. 00:51
[LeetCode] Top K Frequent Elements

Top K Frequent Elements - LeetCode 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 Given a non-empty array of integers, return the k most frequent elements. Example 1: Input: nums = [1,1,1,2,2,3], k = 2 Output: [1,2] Example 2: Input: nums = [1], k = 1 Output: [1] 저는 map과 priority queue를 이용..

2019. 12. 31. 23:13
[LeetCode] Generate Parentheses

Loading Question... - LeetCode 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 Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: [ "((()))", "(()())", "(())()", "()(())", "()()()" ] 이런 류의 문제를 ..

2019. 12. 30. 19:13
[LeetCode] Permutations

Given a collection of distinct integers, return all possible permutations. Example: Input: [1,2,3] Output: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1] ] 먼저 순열을 어떻게 구할 지 방법을 선택해야 합니다. 저는 재귀적인 방법을 선택해서 문제를 풀었습니다. start = 0 start = 1 start = 2 [1, 2, 3] [1, 2, 3] [1, 2, 3] [1, 3, 2] [1, 3, 2] [2, 1, 3] [2, 1, 3] [2, 1, 3] [2, 3, 1] [2, 3, 1] [3, 2, 1] [3, 2, 1] [3, 2, 1] [3, 1, 2] [3, 1,..

2019. 12. 23. 19:29
[LeetCode] Binary Tree Inorder Traversal

Binary Tree Inorder Traversal - LeetCode 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 Given a binary tree, return the inorder traversal of its nodes' values. Input: [1,null,2,3] 1 \ 2 / 3 Output: [1,3,2] Follow up: Recursive solution is trivial, could you do it iteratively? /** * Definit..

2019. 12. 21. 06:45
[프로그래머스] 단어 변환

코딩테스트 연습 - 단어 변환 | 프로그래머스 두 개의 단어 begin, target과 단어의 집합 words가 있습니다. 아래와 같은 규칙을 이용하여 begin에서 target으로 변환하는 가장 짧은 변환 과정을 찾으려고 합니다. 1. 한 번에 한 개의 알파벳만 바꿀 수 있습니다. 2. words에 있는 단어로만 변환할 수 있습니다. 예를 들어 begin이 hit, target가 cog, words가 [hot,dot,dog,lot,log,cog]라면 hit -> hot -> dot -> dog -> programmers.co.kr 문제 설명 두 개의 단어 begin, target과 단어의 집합 words가 있습니다. 아래와 같은 규칙을 이용하여 begin에서 target으로 변환하는 가장 짧은 변환 과..

2019. 10. 30. 05:45
1 2 3 4 ··· 7
© 2019 Gaon Kim. All right reserved.

티스토리툴바