일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- socket
- JavaScript
- map
- dfs
- 제로베이스
- 메모리 배리어
- c#
- C++
- 멀티스레드
- BFS
- 문자열&연산자
- 제로베이스 프론트엔드 스쿨
- Server
- 자바스크립트
- leetcode
- N과 M(2)
- Algorithm
- 서버
- 구현
- 알고리즘
- 구조체
- 코딩테스트 스터디
- 코딩테스트
- 백트래킹
- React
- 백준
- 완전탐색
- MemoryBarrier
- 프로그래머스
- 프론트엔드 스쿨
- Today
- Total
목록전체 글 (72)
Written
https://leetcode.com/problems/longest-palindromic-substring/ Longest Palindromic Substring - LeetCode Longest Palindromic Substring - Given a string s, return the longest palindromic substring in s. Example 1: Input: s = "babad" Output: "bab" Explanation: "aba" is also a valid answer. Example 2: Input: s = "cbbd" Output: "bb" Constraints: * 1
https://leetcode.com/problems/remove-element/ Remove Element - LeetCode Remove Element - Given an integer array nums and an integer val, remove all occurrences of val in nums in-place [https://en.wikipedia.org/wiki/In-place_algorithm]. The relative order of the elements may be changed. Since it is impossible to change the leng leetcode.com Given an integer array nums and an integer val, remove a..
https://leetcode.com/problems/remove-duplicates-from-sorted-array/ Remove Duplicates from Sorted Array - LeetCode Remove Duplicates from Sorted Array - Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place [https://en.wikipedia.org/wiki/In-place_algorithm] such that each unique element appears only once. The relative order of the e leetcode.com Given an integ..
값 복사 , 참조 복사 알고리즘 문제를 풀다가 배열의 복사에 대한 개념을 다시 잡아보았습니다 ! 1 2 3 4 5 6 7 8 let arr = [1,2,3]; let arr2 = arr; arr.length = 0; cosole.log(arr2.length); // 3이 나올거라고 생각했지만 0이 나왔습니다. Colored by Color Scripter cs arr과 arr2가 서로 다른 변수로 각자의 메모리 공간을 따로 가지면서 독립적인 상태라고 생각하여 arr2.length는 3이 출력될거라 생각했지만 , 0이 출력되었습니다. 결국 arr2 = arr이 메모리를 공유(참조)하는 것인지, 단순히 값을 복사하는 것인지 헷갈렸기 때문에 이에 관한 개념을 찾아서 학습한 것을 정리해보려 합니다. 자료형의 값..
유사 배열 객체 배열 처럼 보이지만, 사실은 배열이 아닌 객체를 말합니다. 대표적으로 자바스크립트의 함수에서 사용가능한 argumnets 객체가 있습니다. 1 2 3 4 5 6 7 8 9 10 11 function example(a,b,c) { for (let i = 0; i [1,2,3]의 배열 생성 cs Array.from()의 인자로 arguments를 넣으면 배열 메서드들을 사용할 수 있는 진짜 배열을 만들 수 있습니다. 화살표 함수 화살표 함수는 함수를 간단하게 표현하기 위한 방법입니다. 일반적인 함수와는 다르게 this나 super에 대한 바인딩이 없고 메서드로 사용할 수 없으며 생성자로 사용할 수 없습니다. 함수를 간단히 사용하기 위한 도구로 화살표 함수에 대한 다양하고 자세한 내용은 MDN..

https://leetcode.com/problems/merge-two-sorted-lists/ Merge Two Sorted Lists - LeetCode Merge Two Sorted Lists - You are given the heads of two sorted linked lists list1 and list2. Merge the two lists in a one sorted list. The list should be made by splicing together the nodes of the first two lists. Return the head of the merged linked list. leetcode.com You are given the heads of two sorted li..
https://leetcode.com/problems/valid-parentheses/ Valid Parentheses - LeetCode Valid Parentheses - Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: 1. Open brackets must be closed by the same type of brackets. 2. Open brackets must be leetcode.com Given a string s containing just the characters '(..

코딩테스트 스터디 2주차 기록입니다. https://leetcode.com/problems/roman-to-integer/ Roman to Integer - LeetCode Roman to Integer - Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, 2 is written as II in Roman numeral, just two ones added together. 12 is written as XII leetcode.com 로마 숫자를 정수로 변환하는 문제였습니다. 처음에 문제에 나온 ..