๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ ๋ฉ”๋‰ด ๋ฐ”๋กœ๊ฐ€๊ธฐ

interacting

ํ”„๋กœํ•„์‚ฌ์ง„
  • ๊ธ€์“ฐ๊ธฐ
  • ๊ด€๋ฆฌ
  • ํƒœ๊ทธ
  • ๋ฐฉ๋ช…๋ก
  • RSS

interacting

๊ฒ€์ƒ‰ํ•˜๊ธฐ ํผ
  • ์ „์ฒด (52)
    • ๋‹น๊ทผ๋…ธํŠธ (2)
      • ์ผ์ƒ (0)
      • ์Šคํฌ๋žฉ๋ถ (2)
    • ๋ฆฌ๋ทฐ (4)
      • ๋ฌธํ™”์ƒํ™œ (2)
      • ์ „์ž๊ธฐ๊ธฐ (2)
    • ๊ณต๋ถ€ (36)
      • JS (16)
      • HTML&CSS (2)
      • C (10)
      • priv | ๊ฐ•์˜๋…ธํŠธ (7)
    • ๊ธฐํƒ€ (2)
    • priv. (8)
      • priv | ์ผ๊ธฐ (2)
      • priv | ์ฐฝ๊ณ  (0)
  • ๋ฐฉ๋ช…๋ก

๊ณต๋ถ€ (36)
[Git] Stash ์ •๋ฆฌ ๐ŸŒ

git stash๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์™„๋ฃŒ๋˜์ง€ ์•Š์€ ์ž‘์—…์„ stash stack ์— ์ž„์‹œ ์ €์žฅ ํ•  ์ˆ˜ ์žˆ์Œ git stash === git stash push ์ปค๋ฐ‹์ฒ˜๋Ÿผ -m flag๋ฅผ ์ถ”๊ฐ€ํ•˜์—ฌ ๋ฉ”์‹œ์ง€๋ฅผ ์„ค์ •ํ•  ์ˆ˜ ์žˆ๋‹ค. โฏ git status -s M working.txt # ์›Œํ‚น ๋””๋ ‰ํ† ๋ฆฌ์— ์žˆ๋Š” ํŒŒ์ผ M staging.txt # staging๋œ ํŒŒ์ผ โฏ git stash push -m "working + staging" Saved working directory and index state On master: working + staging โฏ git status -s # ๋ณ€๊ฒฝ์‚ฌํ•ญ์ด stash stack์— ๋“ค์–ด๊ฐ€๋ฉด์„œ working & staging ๋ชจ๋‘ ๋น„์›Œ์ง โฏ git stash list stash@{0}: ..

๊ณต๋ถ€ 2021. 3. 29. 01:17
[JS] Deep Equality checking of Two Objects

JSON.stringify ์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ณ  ๋‘ Object๊ฐ€ ๊ฐ™์€์ง€ ๋น„๊ต(deep-equal) Deep Equality checking of Two Objects function compareObjectsDeepEqual(original, target) { const isObject = obj => typeof obj === "object" && obj !== null; if (!isObject(original) || !isObject(target)) { return original === target; } const keysOfOriginal = Object.keys(original); const keysOfTarget = Object.keys(target); if (keysOfOriginal.len..

๊ณต๋ถ€/JS 2020. 9. 20. 02:26
[JS/์•Œ๊ณ ๋ฆฌ์ฆ˜] Sort Colors : Dutch national flag problem

Dutch national flag problemarray[0] ~ [low-1] zeros (red) array[low] ~ [mid-1] onew (white) array[mid] ~ [high] unknown array[high+1] ~ [length-1] twos (blue)์ฒ˜์Œ์— ๋ชจ๋“  ์š”์†Œ๋Š” unknown ์ƒํƒœ์ด๊ธฐ ๋•Œ๋ฌธ์— low = 0mid = 0high = length-1์ด๋‹ค. 75. Sort ColorsGiven an array with n objects colored red, white or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white..

๊ณต๋ถ€/JS 2020. 9. 7. 09:16
[JS/์•Œ๊ณ ๋ฆฌ์ฆ˜] Find First and Last Position of Element in Sorted Array

BST ์ด๋ฏธ sorted ๋œ ๋ฐ์ดํ„ฐ์˜ ๊ฒฝ์šฐ, BST๋ฅผ ์ด์šฉํ•ด O(log n)์˜ ์‹œ๊ฐ„๋ณต์žก๋„๋กœ ํƒ€๊ฒŸ์„ ์ฐพ์„ ์ˆ˜ ์žˆ๋‹ค. 34. Find First and Last Position of Element in Sorted Array Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value. Your algorithm's runtime complexity must be in the order of O(log n). If the target is not found in the array, return [-1, -1]. Example 1: Input: nums =..

๊ณต๋ถ€/JS 2020. 9. 7. 07:29
[JS/์•Œ๊ณ ๋ฆฌ์ฆ˜] Merge Two Sorted Lists

Linked List + Merge SortMerge sort์˜ ๊ธฐ๋ณธ๊ฐœ๋…์€ Divide and conquer์ด๋‹ค. ๋”ฐ๋ผ์„œ Quick sort์™€ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ ์žฌ๊ท€๋ฅผ ํ†ตํ•ด ๊ตฌํ˜„ ํ•  ์ˆ˜ ์žˆ๋‹ค. ์ด๋ฏธ ์ •๋ ฌ๋œ ๋‘ ํŒŒํ‹ฐ์…˜๋“ค์ด ์žˆ๋‹ค๋ฉด, ๋‘ ํŒŒํ‹ฐ์…˜์˜ ์ฒซ์š”์†Œ๋ฅผ ๊ฒ€์‚ฌํ•˜์—ฌ ๋” ์ž‘์€ ์š”์†Œ๋ฅผ ๋บ€๋‹ค.Linked List ์™€ ์—ฐ๊ฒฐํ•˜์—ฌ์„œ ํ‘ธ๋Š” ๋ฌธ์ œ์ด๊ธฐ๋•Œ๋ฌธ์— ๋” ์ž‘์€ ์š”์†Œ๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ๋Š” ๋ง๋ฆฌ๋ฅผ ํ—ค๋“œ๋กœ ์‚ผ๊ณ , ํ—ค๋“œ๋กœ ์‚ผ์€ ๋ง๋ฆฌ์˜ ๋‹ค์Œ ๋…ธ๋“œ์™€, ํ—ค๋“œ๊ฐ€ ๋˜์ง€๋ชปํ•œ ๋ง๋ฆฌ ๋‘๊ฐ€์ง€๋ฅผ ๋‹ค์‹œ ํ•จ์ˆ˜์— ๋„ฃ๋Š”๋‹ค.21. Merge Two Sorted ListsMerge two sorted linked lists and return it as a new sorted list.The new list should be made by splicing together..

๊ณต๋ถ€/JS 2020. 9. 7. 06:51
์ด์ „ 1 2 3 4 ยทยทยท 8 ๋‹ค์Œ
์ด์ „ ๋‹ค์Œ
์ตœ๊ทผ์— ์˜ฌ๋ผ์˜จ ๊ธ€
์ตœ๊ทผ์— ๋‹ฌ๋ฆฐ ๋Œ“๊ธ€
TAG
  • eslint
  • GIT
  • js
  • KEYBOARD
  • book
  • ๋ฐ”๋‹๋ผ์ฝ”๋”ฉ
  • review
  • stackoverflow
  • ๋ฐ”๋‹๋ผ์ฝ”๋”ฉ ํ›„๊ธฐ
  • eventlistener
  • array
  • DOM
  • css
  • ์ฝ”๋”ฉ๋ถ€ํŠธ์บ ํ”„
  • ์ƒ์„ฑ์žํ•จ์ˆ˜
  • ๋ถ€ํŠธ์บ ํ”„
  • string
  • Stash
  • HTML
  • VSC
more
Total
Today
Yesterday

Blog is Designed by Tistory / Edited by Carrot

ํ‹ฐ์Šคํ† ๋ฆฌํˆด๋ฐ”