겨리의 개발일기

고정 헤더 영역

글 제목

메뉴 레이어

겨리의 개발일기

메뉴 리스트

  • 홈
  • 태그
  • 방명록
  • 분류 전체보기 (82)
    • Programming (57)
      • JavaScript (6)
      • TypeScript (4)
      • Vue.js (9)
      • React (12)
      • Spring (1)
      • Algorithm (13)
      • 기타 (12)
    • CS (2)
    • 회고 (14)
    • HTML&CSS (8)

검색 레이어

겨리의 개발일기

검색 영역

컨텐츠 검색

leetcode

  • [리트코드] A Better Repeated Deletion Algorithm

    2023.04.10 by 겨리!

  • [리트코드] Vaild Mountain Array

    2023.04.06 by 겨리!

  • [리트코드] Remove Element

    2023.03.31 by 겨리!

  • [리트코드] Duplicate Zeros

    2023.03.30 by 겨리!

[리트코드] A Better Repeated Deletion Algorithm

문제는 아니고 정답 해설이지만 two pointer 알고리즘을 사용해서 푸는 방법을 다시 익힐겸 정리해본다. https://leetcode.com/explore/learn/card/fun-with-arrays/511/in-place-operations/3255/ Account Login - 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 중복 값이 아닌 원소만 체크하는 문제에서 two-pointer 알고리즘을 사용하면 간단하게 풀 수 있다! /** * @param..

Programming/Algorithm 2023. 4. 10. 23:41

[리트코드] Vaild Mountain Array

https://leetcode.com/explore/learn/card/fun-with-arrays/527/searching-for-items-in-an-array/3251/ Explore - LeetCode LeetCode Explore is the best place for everyone to start practicing and learning on LeetCode. No matter if you are a beginner or a master, there are always new topics waiting for you to explore. leetcode.com 주어진 Array가 산 모양을 이루는지 체크해서 true or false를 리턴하는 문제 삽질을 많이 해서 기록 😅 처음엔 가장 큰..

카테고리 없음 2023. 4. 6. 16:44

[리트코드] Remove Element

https://leetcode.com/explore/learn/card/fun-with-arrays/526/deleting-items-from-an-array/3247/ Explore - LeetCodeLeetCode Explore is the best place for everyone to start practicing and learning on LeetCode. No matter if you are a beginner or a master, there are always new topics waiting for you to explore.leetcode.com 주어진 val의 값과 배열의 원소가 같으면 해당 원소를 제거하고 val의 값과 다른 원소들의 개수를 리턴하는 문제 힌트를 보면 two poi..

Programming/Algorithm 2023. 3. 31. 15:54

[리트코드] Duplicate Zeros

https://leetcode.com/explore/learn/card/fun-with-arrays/525/inserting-items-into-an-array/3245/ Explore - LeetCodeLeetCode Explore is the best place for everyone to start practicing and learning on LeetCode. No matter if you are a beginner or a master, there are always new topics waiting for you to explore.leetcode.com 주어진 배열의 요소가 0이면 0을 더 추가하되 기존 배열의 length 는 유지해야한다. 주어진 배열을 수정하라고 해서(modify arr..

Programming/Algorithm 2023. 3. 30. 00:09

추가 정보

반응형

인기글

최신글

페이징

이전
1
다음
겨리의 개발일기
메일

티스토리툴바