본문 바로가기

코딩쌀롱

검색하기
코딩쌀롱
프로필사진 이브✱

  • 모든 글 (126)
    • 개발공부 (70)
    • 책 (10)
    • 회고 (43)
      • 하루 기록 (25)
      • 회고 (18)
    • 아무것 (3)
    • 여행 (0)
Guestbook
Recent Posts
Recent Comments
Today
Total
«   2025/06   »
일 월 화 수 목 금 토
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
Archives
Tags
  • 비동기
  • array
  • Promise
  • node.js
  • input
  • 아티클
  • TS
  • 코어자바스크립트
  • closure
  • 생성자
  • React
  • 코드스쿼드
  • bind
  • Prototype
  • 알고리즘
  • 회고
  • leetcode
  • 링크드 리스트
  • 프로그래머스
  • javascript
more
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록single linked list (1)

코딩쌀롱

[LeetCode_JS] 83. Remove Duplicates from Sorted List

문제 LeetCode 83. Remove Duplicates from Sorted List 문제 input: 싱글 링크드 리스트의 head node output: 중복 val인 노드들을 제거한 링크드 리스트의 head node // Definition for singly-linked list. function ListNode(val, next) { this.val = (val===undefined ? 0 : val) this.next = (next===undefined ? null : next) } 노드들은 val, next 속성을 가지고 있다. 나의 풀이 while문 마지막에 현재 노드를 다음 노드로 바꿔주고, 현재 노드가 끝까지 가서 null일 때 while문을 더 이상 돌지 않게 했다. ✱바깥 wh..

개발공부 2021. 1. 13. 16:23
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바