기록하는 공간

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

Python 3

[leetcode/python3] 49. Group Anagrams

https://leetcode.com/problems/group-anagrams/ Group Anagrams - 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 class Solution: def groupAnagrams(self, strs: List[str]) -> List[List[str]]: dicts = {} for s in strs: sorted_value = ''.join(sorted(s)) if sorted_value not in dicts: dict..

알고리즘/Leetcode 2022.04.26

[leetcode/python3] 565. Array Nesting

https://leetcode.com/problems/array-nesting/ Array Nesting - 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 class Solution: def arrayNesting(self, nums: List[int]) -> int: result = 0 for index in range(0, len(nums)): length = 0 while nums[index] != -1: length += 1 temp = nums[inde..

알고리즘/Leetcode 2021.09.18

[leetcode/python3] 1768.Merge Strings Alternately

문제링크 leetcode.com/problems/merge-strings-alternately/ Merge Strings Alternately - 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 class Solution: def mergeAlternately(self, word1: str, word2: str) -> str: res = '' arr1 = list(word1) arr2 = list(word2) maxLenght = max(len(word1), le..

알고리즘/Leetcode 2021.04.10
이전
1
다음
더보기
프로필사진

기록하는 공간

  • 분류 전체보기 (38)
    • 알고리즘 (34)
      • Leetcode (29)
      • Codility (5)
    • 프로그래밍 (0)
      • Spring (0)
      • Kotlin (0)
    • 도서 (1)
      • Clean Code (1)
    • 맛집 (3)

Tag

코딩 테스트, 알고리즘, 맛집, map, linked list, 투포인터, 코딩 테세트, 망원 밥집, prefix sum, Array, LeetCode, string, two pointers, algorithm, tree, algorithum, 른당사피, Python, 코테, java,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/08   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바