Learn, apply and share
About Category Tags Archives
  • [js] slice, substr, substring

    Sep 3, 2018 - vanillaJS - [ string , slice , substr , substring ]

    자바스크립트에서 문자열의 일부를 추출하고자 할 때 사용할 수 있는 함수는 slice, substr, substring 3가지가 있다. 이 글에서는 3가지 함수의 용법을 정확히 이해하고 어느 경우에 어떤 함수를 사용하는 것이 좋을 지 안내한다

    Read on →

  • [알고리즘] Merge sort

    Sep 2, 2018 - algorithm - [ algorithm , merge-sort ]

    정렬된 2개의 배열이 주어 진다면 정렬상태를 유지하며 병합하는 것은 참 쉽다. 이 점에 착안하여 임의의 주어진 배열을 가운데 기준으로 양분한 뒤 정렬된 상태를 유지하며 다시 병합하는 방법. 나뉘어진 두 부분의 배열에 대해서도 재귀적으로 병합정렬을 수행.

    Read on →

  • Highest Value Palindrome

    Sep 2, 2018 - algorithm - [ palindrome ]

    흔한 팰린드롬(좌우대칭 문자열) 관련 문제이지만 이틀 동안 너무 고생했던 문제ㅠ https://www.hackerrank.com/challenges/richie-rich/problem

    Read on →

  • js 진수변환

    Sep 2, 2018 - vanillaJS - [ 진수변환 ]

    10진수 -> 16진수

    var dec = 123;
    var hex = dec.toString(16); // === "7b"
    

    Read on →

  • Forming a Magic Square

    Sep 1, 2018 - algorithm - [ array , magic-square-forming ]

    문제

    아래와 같이 가로/세로/대각선의 합계가 모두 같은 행렬을 magic-square 라고 한다.

    8 3 4
    1 5 9
    6 7 2
    

    Read on →

« Older Newer »

Learn, apply and share

  • Learn, apply and share
  • min9nim@gmail.com
  • min9nim
  • min9nim
  • minq
  • min9nim
  • smg529

SW 개발에 대한 이야기

크리에이티브 커먼즈 라이선스 크리에이티브 커먼즈 저작자표시-동일조건변경허락 4.0 국제 라이선스에 따라 이용할 수 있습니다
© - Powered by GitHub & Jekyll & whiteglass - Subscribe via RSS