기록하는 공간

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

투포인터 2

[leetcode/python3] 392. Is Subsequence

Is Subsequence - LeetCode Is Subsequence - Given two strings s and t, return true if s is a subsequence of t, or false otherwise. A subsequence of a string is a new string that is formed from the original string by deleting some (can be none) of the characters without disturbing th leetcode.com class Solution: def isSubsequence(self, s: str, t: str) -> bool: l, r = 0, 0 while l < len(s) and r < ..

알고리즘/Leetcode 2023.01.25

[leetcode/kotlin] 283. Move Zeros

class Solution { private fun swap (first: Int, second: Int, nums: IntArray) { val temp = nums[first] nums[first] = nums[second] nums[second] = temp } fun moveZeroes(nums: IntArray): Unit { var first = 0 var second = 0 val numsSize = nums.size while (first < numsSize) { if (nums[first] != 0) { swap(first, second, nums) second++ } first++ } } }

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

기록하는 공간

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

Tag

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

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

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

티스토리툴바