티스토리

.Zzumbong
검색하기

블로그 홈

.Zzumbong

error404.co.kr/m

Front-End 개발자의 탐험 일지!

구독자
0
방명록 방문하기

주요 글 목록

  • [leetCode/JS] 1624. Largest Substring Between Two Equal Characters 난이도 [ 😊 ] Easy 문제 설명 Given a string s, return the length of the longest substring between two equal characters, excluding the two characters. If there is no such substring return -1. A substring is a contiguous sequence of characters within a string. 문자열 s가 주어진다. 두 문자를 제외한 두 개의 문자 사이의 가장 긴 부분 문자열의 길이를 반환한다. 문자열이 없으면 -1을 반환한다. 입출력 예 Example 1: Input: s = "aa" Output: 0 Explanation: The optimal su.. 공감수 0 댓글수 0 2023. 9. 29.
  • [leetCode/JS] 896. Monotonic Array 난이도 [ 😊 ] Easy 문제 설명 An array is monotonic if it is either monotone increasing or monotone decreasing. An array nums is monotone increasing if for all i 공감수 0 댓글수 0 2023. 9. 29.
  • [leetCode/JS] 880. Decoded String at Index 난이도 [ 🤔 ] Medium 문제 설명 You are given an encoded string s. To decode the string to a tape, the encoded string is read one character at a time and the following steps are taken: If the character read is a letter, that letter is written onto the tape. If the character read is a digit d, the entire current tape is repeatedly written d - 1 more times in total. Given an integer k, return the kth lette.. 공감수 0 댓글수 0 2023. 9. 28.
  • [leetCode/JS] 905. Sort Array By Parity 난이도 [😊 ] Easy 문제 설명 Given an integer array nums , move all the even integers at the beginning of the array followed by all the odd integers. Return any array that satisfies this condition. 정수 배열 nums 가 주어지면 배열의 앞부분으로 짝수 정수를 모두 이동시키고 그 뒤에 홀수 정수를 이동해라. 입출력 예 Example 1: Input: nums = [3,1,2,4] Output: [2,4,3,1] Explanation: The outputs [4,2,3,1], [2,4,1,3], and [4,2,1,3] would also be accepted. Exa.. 공감수 0 댓글수 0 2023. 9. 28.
  • 알리발 레트로 키캡 구매 후기 알리에서 전내 귀여운게임보이 키캡을 구매! 6월 25일 구매해서 약 15일 정도 걸려서 배송 받았다 산것을 잊어먹을 때쯤 선물처럼 도착하는 알리무려 15일 정도 걸려서 도착! 바로장착 요홍이 상당히 괜찮다 esc키에 컴터를 장착하고 ~키에 게임보이를 장착 했다 다하면 1.8만원이라 생각보다 비싸지만 뚜껑으로 겉모습교체도 가능하고 스크린도 교체할 수있으니 계속 오래 사용할 수 있을뜻 알리는 쇼핑에 빠지면 답이 없는데 너무 재미있어 공감수 0 댓글수 0 2023. 7. 10.
  • [leetCode/JS] 841. Keys and Rooms 난이도 [ 👿 😊 🤔 ] Hard Medium Easy 문제 설명 There are n rooms labeled from 0 to n - 1 and all the rooms are locked except for room 0. Your goal is to visit all the rooms. However, you cannot enter a locked room without having its key. When you visit a room, you may find a set of distinct keys in it. Each key has a number on it, denoting which room it unlocks, and you can take all of them with you to un.. 공감수 0 댓글수 0 2022. 12. 20.
  • [스팀 인디] 코어 키퍼 50시간 리뷰 인디 도트 게임 코어키퍼 50시간 리뷰! 게임 자체는 테라리아, 마크, 도트, 온라인 코옵, 크레프팅 태그로 설명할 수 있다. 얼리라서 컨텐츠가 없거나 먹튀가 있을 것 같아서 꼼꼼히 살펴봤는데 로드맵도 굉장히 탄탄했다. 업데이트 자체는 조금 느린편이지만 먹튀만 안해도 어디야.. 코어키퍼를 같이하려면 도구에 Dedicated Server를 열어서 같이하면 된다. 50시간 동안 2명이서 한 서버 여러 재료를 모아서 집을 꾸밀 수 도 있다. 마크처럼 바이옴이 있으나 완전 랜덤은 아니고 구역이 정해져있고 여러모로 생태계가 재미있게 꾸며져 있다. 숨겨져있는 것들도 많다 그리고 맵이 굉장히 큰데, 걸어서 이동하는 것이 힘들 정도다. 레일을 이용한 이동, 카트, 보트, 포탈 등이 오픈되니 걱정은 안해도 된다. 최근 .. 공감수 0 댓글수 0 2022. 12. 19.
  • [신천/새내 데이트] 소마드로잉카페 1인당 19900원! 최소 2시간 그림 가능, 대기자 없으면 좀 더 해도 되나봄 도안이라고 스케치가 프린팅된 캔버스가 있는데, 여자친구는 프로라서 당연 필요없고 나는 남자답게 그냥 하기로 ㄱㄱ 물감은 12색 기본 아크릴이고 붓은 송곳 같은 녀석이거나 흐물텅거리는 녀석들이 좀 있었다. 추가적인 형광색 계열의 물감이나 색연필, 파스텔, 마카가 조금있었는데 사용안함. 급하게 구글에 아크릴 풍경화 쳐서 그 중에 가장 맘에들었던 밤하늘 은하수가 있길래 천천히 구경 후 시작. 아이디어 감사! 생전 처음 캔버스에 그림 그려봤는데 정말 힘들었다. 붓들이 너무 힘이 없어서 잘 안뿌려졌다. 별은 칫솔로 하고 싶었는데 아쉽. 여자친구는 나와 자기 캐릭터를 만들어서 그렸다. 아크릴은 처음 사용하지만 예전 입시 미술하던 생각 .. 공감수 0 댓글수 0 2022. 12. 18.
  • [leetCode/JS] 739. Daily Temperatures 난이도 [ 🤔 ] Medium 문제 설명 Given an array of integers temperatures represents the daily temperatures, return an array answer such that answer[i] is the number of days you have to wait after the ith day to get a warmer temperature. If there is no future day for which this is possible, keep answer[i] == 0 instead. 일일 온도가 입력된 배열에서 더 따듯해지는 날까지의 일 수의 배열을 반환하면된다. 없으면 0으로 리턴한다. 입출력 예 Example 1: Input: temp.. 공감수 0 댓글수 0 2022. 12. 18.
  • [leetCode/JS] 150. Evaluate Reverse Polish Notation 난이도 [ 🤔 ] Medium 문제 설명 Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, and /. Each operand may be an integer or another expression. Note that division between two integers should truncate toward zero. It is guaranteed that the given RPN expression is always valid. That means the expression would always evaluate to a result, and there will n.. 공감수 0 댓글수 0 2022. 12. 17.
  • [leetCode/JS] 232. Implement Queue using Stacks 난이도 [ 😊 ] Easy 문제 설명 Implement a first in first out (FIFO) queue using only two stacks. The implemented queue should support all the functions of a normal queue (push, peek, pop, and empty). Implement the MyQueue class: void push(int x) Pushes element x to the back of the queue. int pop() Removes the element from the front of the queue and returns it. int peek() Returns the element at the front .. 공감수 0 댓글수 0 2022. 12. 16.
  • [leetCode/JS] 1143. Longest Common Subsequence 난이도 [ 🤔 ] Medium 문제 설명 Given two strings text1 and text2, return the length of their longest common subsequence. If there is no common subsequence, return 0. A subsequence of a string is a new string generated from the original string with some characters (can be none) deleted without changing the relative order of the remaining characters. For example, "ace" is a subsequence of "abcde". A commo.. 공감수 0 댓글수 0 2022. 12. 15.
  • [leetCode/JS] 152. Maximum Product Subarray 난이도 [ 🤔 ] Medium 문제 설명 Given an integer array nums, find a subarray that has the largest product, and return the product. The test cases are generated so that the answer will fit in a 32-bit integer. 연속된 element 중 곱했을 때, 가장큰 수를 return 한다. 입출력 예 Example 1: Input: nums = [2,3,-2,4] Output: 6 Explanation: [2,3] has the largest product 6. Example 2: Input: nums = [-2,0,-1] Output: 0 Explanation: The.. 공감수 0 댓글수 0 2022. 12. 14.
  • [leetCode/JS] 198. House Robber 난이도 [ 🤔 ] Medium 문제 설명 You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses have security systems connected and it will automatically contact the police if two adjacent houses were broken into on the same night. Given an integer array nums represent.. 공감수 0 댓글수 0 2022. 12. 14.
  • [leetCode/JS] 931. Minimum Falling Path Sum 난이도 [ 🤔 ] Medium 문제 설명 Given an n x n array of integers matrix, return the minimum sum of any falling path through matrix. A falling path starts at any element in the first row and chooses the element in the next row that is either directly below or diagonally left/right. Specifically, the next element from position (row, col) will be (row + 1, col - 1), (row + 1, col), or (row + 1, col + 1). n .. 공감수 0 댓글수 0 2022. 12. 13.
  • [leetCode/JS] 70. Climbing Stairs 난이도 [ 😊 ] Easy 문제 설명 You are climbing a staircase. It takes n steps to reach the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? n 계단을 올라가는데, 1 또는 2칸 씩 올라 갈 때, 모든 경우의 수는 얼마인가? 입출력 예 Example 1: Input: n = 2 Output: 2 Explanation: There are two ways to climb to the top. 1. 1 step + 1 step 2. 2 steps Example 2: Input: n = 3 Output: 3 Explanation.. 공감수 0 댓글수 0 2022. 12. 12.
  • 유투버 나쫌의 4X 캔버스 - 안드로메다 하늘, 천문, 별 유투버 나쫌 NaZZom의 4X캔버스를 드디어 구매했다. 1차, 2차 실패에 이어 3차를 기다리던 중 재고품이 조금 풀려서 겨우 구매했다. 슬프게도 배송중에 쪼~금 뿌서졌다. 단순히 우주 사진 캔버스라면 안샀을탠데 무려 불이 켜진다. AA 3개가 들어가거나 usb 5핀으로 상시 전원도 가능한듯 벽에 건 사진 막 클 줄 알았는데, 사이즈가 가로 92cm, 세로 23cm로 은근 큰 사이즈지만 설치하면 생각보다 안크다. 진짜 우주에 온느낌. 라이트 켜두면 정말 멋지다. 나쫌NaZZom 혼자 보기 아까운 '신기한 영상'을 나누는 채널입니다. 문의사항은 nazzom_tube@naver.com로 메일 주세요. 감사합니다 ^^ www.youtube.com NaZZom 4X Canvas 재고 판매 :.. 공감수 0 댓글수 0 2022. 12. 11.
  • [leetCode/JS] 124. Binary Tree Maximum Path Sum 난이도 [ 👿 ] Hard 문제 설명 A path in a binary tree is a sequence of nodes where each pair of adjacent nodes in the sequence has an edge connecting them. A node can only appear in the sequence at most once. Note that the path does not need to pass through the root. The path sum of a path is the sum of the node's values in the path. Given the root of a binary tree, return the maximum path sum of any non.. 공감수 0 댓글수 0 2022. 12. 11.
  • [leetCode/JS] 1339. Maximum Product of Splitted Binary Tree 난이도 [ 🤔 ] Medium 문제 설명 Given the root of a binary tree, split the binary tree into two subtrees by removing one edge such that the product of the sums of the subtrees is maximized. Return the maximum product of the sums of the two subtrees. Since the answer may be too large, return it modulo 109 + 7. Note that you need to maximize the answer before taking the mod and not after taking it. 문제가 좀 복.. 공감수 0 댓글수 0 2022. 12. 10.
  • [leetCode/JS] 1026. Maximum Difference Between Node and Ancestor 난이도 [ 🤔 ] Medium 문제 설명 Given the root of a binary tree, find the maximum value v for which there exist different nodes a and b where v = |a.val - b.val| and a is an ancestor of b. A node a is an ancestor of b if either: any child of a is equal to b or any child of a is an ancestor of b. 이진트리의 상위, 하위 노드의 a-b 의 최대값을 찾는 문제다. 입출력 예 Example 1: Input: root = [8,3,10,1,6,null,14,null,null,4,7,13] Outpu.. 공감수 0 댓글수 0 2022. 12. 9.
  • [leetCode/JS] 872. Leaf-Similar Trees 난이도 [ 😊 ] Easy 문제 설명 Consider all the leaves of a binary tree, from left to right order, the values of those leaves form a leaf value sequence. For example, in the given tree above, the leaf value sequence is (6, 7, 4, 9, 8). Two binary trees are considered leaf-similar if their leaf value sequence is the same. Return true if and only if the two given trees with head nodes root1 and root2 are le.. 공감수 0 댓글수 0 2022. 12. 8.
  • [leetCode/JS] 938. Range Sum of BST 난이도 [ 😊 ] Easy 문제 설명 Given the root node of a binary search tree and two integers low and high, return the sum of values of all nodes with a value in the inclusive range [low, high]. 2진 트리의 노드 값이 low, high 범위에 들어오면 모두 더해서 return 한다. 입출력 예 Example 1: Input: root = [10,5,15,3,7,null,18], low = 7, high = 15 Output: 32 Explanation: Nodes 7, 10, and 15 are in the range [7, 15]. 7 + 10 + 15 = 32. Exam.. 공감수 0 댓글수 0 2022. 12. 7.
  • 치이카와 함께 힘내라 박스 시계 미니어처 가챠 캡슐토이 뽑기 개당 6500원 2개를 샀다. 재발매를 예약해서 거의 4개월만에 도착 정말 다 귀엽다. 중복만 아니길 바라며 2개만 구매 짠 고양이 하치와레와 토끼 우사기! 어흑 자는 모습 기여워 풀뽑기 자격증 3급을 바라보는 당당한 우사기 안타깝게 치이카와는 안나왔지만 나머지 둘도 귀여우니까 공감수 0 댓글수 0 2022. 12. 7.
  • [leetCode/JS] 328. Odd Even Linked List 난이도 [ 🤔 ] Medium 문제 설명 Given the head of a singly linked list, group all the nodes with odd indices together followed by the nodes with even indices, and return the reordered list. The first node is considered odd, and the second node is even, and so on. Note that the relative order inside both the even and odd groups should remain as it was in the input. You must solve the problem in O(1) extra.. 공감수 0 댓글수 0 2022. 12. 6.
  • [leetCode/JS] 876. Middle of the Linked List 난이도 [ 😊 ] Easy 문제 설명 Given the head of a singly linked list, return the middle node of the linked list. If there are two middle nodes, return the second middle node. 단일 linked List 를 준다. list의 중간 부터 return하는데, 중간이 2개 인 경우(짝수 length) 일땐, 2번째 중간 값 부터 return 해준다. 입출력 예 Example 1: Input: head = [1,2,3,4,5] Output: [3,4,5] Explanation: The middle node of the list is node 3. Example 2: Input: head = [.. 공감수 0 댓글수 0 2022. 12. 5.
  • [leetCode/JS] 2256. Minimum Average Difference 난이도 [ 🤔 ] Medium 문제 설명 You are given a 0-indexed integer array nums of length n. The average difference of the index i is the absolute difference between the average of the first i + 1 elements of nums and the average of the last n - i - 1 elements. Both averages should be rounded down to the nearest integer. Return the index with the minimum average difference. If there are multiple such indice.. 공감수 0 댓글수 0 2022. 12. 4.
  • [leetCode/JS] 451. Sort Characters By Frequency 난이도 [ 🤔 ] Medium 문제 설명 Given a string s, sort it in decreasing order based on the frequency of the characters. The frequency of a character is the number of times it appears in the string. Return the sorted string. If there are multiple answers, return any of them. 문자열 s에 문자가 등장횟수만큼 내림차순 정렬한다. aaaccc, cccaaa 는 둘다 정답이란다. 숫자만 신경쓰면 된다. 입출력 예 Example 1: Input: s = "tree" Output: "eert" Explanation: .. 공감수 0 댓글수 0 2022. 12. 3.
  • [leetCode/JS] 1657. Determine if Two Strings Are Close 난이도 [ 🤔 ] Medium 문제 설명 Two strings are considered close if you can attain one from the other using the following operations: Operation 1: Swap any two existing characters. For example, abcde -> aecdb Operation 2: Transform every occurrence of one existing character into another existing character, and do the same with the other character. For example, aacabb -> bbcbaa (all a's turn into b's, and.. 공감수 0 댓글수 0 2022. 12. 2.
  • [leetCode/JS] 1704. Determine if String Halves Are Alike 난이도 [ 😊 ] Easy 문제 설명 You are given a string s of even length. Split this string into two halves of equal lengths, and let a be the first half and b be the second half. Two strings are alike if they have the same number of vowels ('a','e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'). Notice that s contains uppercase and lowercase letters. Return true if a and b are alike. Otherwise, return false. 짝수 .. 공감수 0 댓글수 0 2022. 12. 1.
  • [leetCode/JS] 1207. Unique Number of Occurrences 난이도 [ 😊 ] Easy 문제 설명 Given an array of integers arr, return true if the number of occurrences of each value in the array is unique, or false otherwise. int 로 이루어진 arr가 있다. 여기에 나오는 숫자가 발생횟수가 유니크 할때 true이다. 입출력 예 Example 1: Input: arr = [1,2,2,1,1,3] Output: true Explanation: The value 1 has 3 occurrences, 2 has 2 and 3 has 1. No two values have the same number of occurrences. 1은 3번, 2는 2번, 3은 1번 .. 공감수 0 댓글수 0 2022. 11. 30.
    문의안내
    • 티스토리
    • 로그인
    • 고객센터

    티스토리는 카카오에서 사랑을 담아 만듭니다.

    © Kakao Corp.