일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 우리시대의역설
- 송리단
- 알고리즘테스트
- 뜨아거
- 밥무하마드
- 메일우유
- 박주영판사
- DIY
- 코테
- 맛집
- 미앤아이
- 게임
- 서울제빵소
- 메탈퍼즐
- 코딩테스트
- 누룽지소금빵
- 롱라이플
- javascript
- 나쫌
- 취미
- 노노그램
- 발더스모드
- 발더스3
- 바질토마토뭐시기
- LeetCode
- 토이프로젝트
- 발더스게이트
- 제프딕슨
- 눈알빠지겠네
- 버즈2프로
- Today
- Total
목록전체 글 (108)
.Zzumbong
1. console.log() 가장 기본적이면서 가장 많이 사용되는 메소드입니다. 변수의 값이나 프로그램의 상태 등을 로그로 출력합니다. const number = 5; console.log('Number:', number); console.log(`Number: ${number}`); // 주로 이방법이 편하다. 예를 들면 console.log('foo: ', foo, ' bar: ', bar); console.log(`foo: ${foo}, bar: ${bar}`); // 처럼 아래가 타자치기 조금 더 편한 느낌. 2. console.table() 배열이나 객체를 테이블 형태로 출력하여, 데이터를 한눈에 이해하기 쉽게 해 줍니다. 3. console.time() / console.timeEnd() 코..
난이도 [ 🤔 ] Medium 문제 설명 Given an integer n, break it into the sum of k positive integers, where k >= 2, and maximize the product of those integers. Return the maximum product you can get. 입출력 예 Example 1: Input: n = 2 Output: 1 Explanation: 2 = 1 + 1, 1 × 1 = 1. Example 2: Input: n = 10 Output: 36 Explanation: 10 = 3 + 3 + 4, 3 × 3 × 4 = 36. Constraints 2
난이도 [ 😊 ] Easy 문제 설명 Design a HashMap without using any built-in hash table libraries. Implement the MyHashMap class: MyHashMap() initializes the object with an empty map. void put(int key, int value) inserts a (key, value) pair into the HashMap. If the key already exists in the map, update the corresponding value. int get(int key) returns the value to which the specified key is mapped, or -1 if..
난이도 [ 🤔 ] Medium 문제 설명 The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) P A H N A P L S I I G Y I R And then read line by line: "PAHNAPLSIIGYIR" Write the code that will take a string and make this conversion given a number of rows: string convert(string s, int numRows); 입출..
난이도 [ 😊 ] Easy 문제 설명 Given an array of integers nums, return the number of good pairs. A pair (i, j) is called good if nums[i] == nums[j] and i < j. 정수 nums 배열을 받아서 good pairs 를 리턴한다. good pair 는 nums[i] === nums[j] 이다. i < j 는 해당하지 않음.. 문제가 좀 이상하긴해 입출력 예 Example 1: Input: nums = [1,2,3,1,1,3] Output: 4 Explanation: There are 4 good pairs (0,3), (0,4), (3,4), (2,5) 0-indexed. Example 2: Input: n..
난이도 [ 🤔 ] Medium 문제 설명 There are n pieces arranged in a line, and each piece is colored either by 'A' or by 'B'. You are given a string colors of length n where colors[i] is the color of the ith piece. Alice and Bob are playing a game where they take alternating turns removing pieces from the line. In this game, Alice moves first. Alice is only allowed to remove a piece colored 'A' if both its n..
난이도 [ 😊 ] Easy 문제 설명 Given a string s, reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. 문자열 s가 주어지면 공백과 단어 순서를 그대로 유지하면서 단어의 문자 순서를 반대로 바꾼다. 입출력 예 Example 1: Input: s = "Let's take LeetCode contest" Output: "s'teL ekat edoCteeL tsetnoc" Example 2: Input: s = "God Ding" Output: "doG gniD" Constraints 1
난이도 [ 😊 ] 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..
난이도 [ 😊 ] Easy 문제 설명 An array is monotonic if it is either monotone increasing or monotone decreasing. An array nums is monotone increasing if for all i
난이도 [ 🤔 ] 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..
난이도 [😊 ] 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..
알리에서 전내 귀여운게임보이 키캡을 구매! 6월 25일 구매해서 약 15일 정도 걸려서 배송 받았다 산것을 잊어먹을 때쯤 선물처럼 도착하는 알리무려 15일 정도 걸려서 도착! 바로장착 요홍이 상당히 괜찮다 esc키에 컴터를 장착하고 ~키에 게임보이를 장착 했다 다하면 1.8만원이라 생각보다 비싸지만 뚜껑으로 겉모습교체도 가능하고 스크린도 교체할 수있으니 계속 오래 사용할 수 있을뜻 알리는 쇼핑에 빠지면 답이 없는데 너무 재미있어
난이도 [ 👿 😊 🤔 ] 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..
인디 도트 게임 코어키퍼 50시간 리뷰! 게임 자체는 테라리아, 마크, 도트, 온라인 코옵, 크레프팅 태그로 설명할 수 있다. 얼리라서 컨텐츠가 없거나 먹튀가 있을 것 같아서 꼼꼼히 살펴봤는데 로드맵도 굉장히 탄탄했다. 업데이트 자체는 조금 느린편이지만 먹튀만 안해도 어디야.. 코어키퍼를 같이하려면 도구에 Dedicated Server를 열어서 같이하면 된다. 50시간 동안 2명이서 한 서버 여러 재료를 모아서 집을 꾸밀 수 도 있다. 마크처럼 바이옴이 있으나 완전 랜덤은 아니고 구역이 정해져있고 여러모로 생태계가 재미있게 꾸며져 있다. 숨겨져있는 것들도 많다 그리고 맵이 굉장히 큰데, 걸어서 이동하는 것이 힘들 정도다. 레일을 이용한 이동, 카트, 보트, 포탈 등이 오픈되니 걱정은 안해도 된다. 최근 ..
1인당 19900원! 최소 2시간 그림 가능, 대기자 없으면 좀 더 해도 되나봄 도안이라고 스케치가 프린팅된 캔버스가 있는데, 여자친구는 프로라서 당연 필요없고 나는 남자답게 그냥 하기로 ㄱㄱ 물감은 12색 기본 아크릴이고 붓은 송곳 같은 녀석이거나 흐물텅거리는 녀석들이 좀 있었다. 추가적인 형광색 계열의 물감이나 색연필, 파스텔, 마카가 조금있었는데 사용안함. 급하게 구글에 아크릴 풍경화 쳐서 그 중에 가장 맘에들었던 밤하늘 은하수가 있길래 천천히 구경 후 시작. 아이디어 감사! 생전 처음 캔버스에 그림 그려봤는데 정말 힘들었다. 붓들이 너무 힘이 없어서 잘 안뿌려졌다. 별은 칫솔로 하고 싶었는데 아쉽. 여자친구는 나와 자기 캐릭터를 만들어서 그렸다. 아크릴은 처음 사용하지만 예전 입시 미술하던 생각 ..
난이도 [ 🤔 ] 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..
난이도 [ 🤔 ] 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..
난이도 [ 😊 ] 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 ..
난이도 [ 🤔 ] 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..
난이도 [ 🤔 ] 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..