기록하는 공간

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

Array 2

[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/kotlin] 118. Pascal's Triangle

class Solution { fun generate(numRows: Int): List { val totalArr: MutableList = mutableListOf() var innerArr: MutableList = mutableListOf(1) for (i in 0 until numRows) { totalArr.add(innerArr) val _innerArr: MutableList = mutableListOf() _innerArr.add(1) for (j in 0 until innerArr.size - 1) { _innerArr.add(innerArr[j] + innerArr[j +1 ]) } _innerArr.add(1) innerArr = _innerArr } return totalArr } }

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

기록하는 공간

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

Tag

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

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • 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.

티스토리툴바