본문 바로가기
반응형

자바스크립트26

125. Valid Palindrome 125. Valid Palindrome LeetCode - The World's Leading Online Programming Learning Platform 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 문자 거꾸로 해도 같은 문자인지 확인하는 문제 기러기 이효리 느낌쓰 ㅎ.. 밋업에서 풀어보라해서 풀어본다. 이지라 그런지 그렇게 어렵진 않았는데 중간중간 구글링이 필요하기도 했다. 첨에 테스트코드 무조건 통과할거라생각했는데 테스트케이스에 숫자도 있더라 ㅎ 숫자도 넣어줌 /*.. 2024. 2. 13.
56. Merge Intervals 56. Merge Intervals LeetCode - The World's Leading Online Programming Learning Platform 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 앞배열과 첫번째 숫자와 두번째 숫자의 범위가 다음배열과 겹치게되면 교집합 날리고 합집합으로 나타내기 (이렇게 설명하는게 맞나 싶다) 첨에는 막 풀다가 시간이 너무오래걸리고 계속 오답나와서 현타가 왔다. /** * @param {number[][]} intervals * @ret.. 2024. 2. 8.
100. Same Tree 100. Same Tree LeetCode - The World's Leading Online Programming Learning Platform 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 트리 두개 주고 같은지 확인후 불리언으로 리턴 하면 되는 문제 /** * Definition for a binary tree node. * function TreeNode(val, left, right) { * this.val = (val===undefined ? 0 : val) * t.. 2024. 2. 8.
206. Reverse Linked List 206. Reverse Linked List LeetCode - The World's Leading Online Programming Learning Platform 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 연결리스트를 뒤집어서 반환하라는 문제 /** * Definition for singly-linked list. * function ListNode(val, next) { * this.val = (val===undefined ? 0 : val) * this.next = .. 2024. 1. 31.
반응형