JeongDoc
취소

JS-알고리즘 Leetcode(Easy)-Majority Element

Question Given an array nums of size n, return the majority element. The majority element is the element that appears more than ⌊n / 2⌋ times. You may assume that the majority element always exis...

JS-알고리즘 Leetcode(Easy)-Best Time to Buy and Sell Stock

Question You are given an array prices where prices[i] is the price of a given stock on the ith day. You want to maximize your profit by choosing a single day to buy one stock and choosing a diff...

JS-알고리즘 Leetcode(Easy)-Excel Sheet Column Title

Question Given an integer columnNumber, return its corresponding column title as it appears in an Excel sheet. 대충 해석 정수인 colunmNumber에 따라 해당하는 엑셀 시트의 컬럼 타이틀을 리턴하세요. Example #Sample A -> 1 B -&...

JAVA-알고리즘 Leetcode(Easy)-Sqrt(X)

Question Given a non-negative integer x, return the square root of x rounded down to the nearest integer. The returned integer should be non-negative as well. You must not use any built-in exponent...

UBUNTU-LINUX Telnet으로 sendmail 테스트 해보기

들어가며 현재 저는 공부용으로 라즈베리파이에 우분투 리눅스를 사용중입니다. MTA(Mail Transfer Agent)로 sendmail을 이용했습니다. 구성 후 간단한 테스트를 위해 텔넷을 이용했던 내용을 기록합니다. 1. SMTP 포트 확인 전제가 세팅 완료 이후이므로 세팅 이후 포트로 잘 동작하고 있는지 확인합니다. netstat...

Jekyll 폰트 적용

들어가며 대부분의 jekyll테마에 기본 설정되어있는 폰트들은 한글이 그리 예쁘게(?) 표현되지 않습니다. 따라서 원하는 폰트 사용을 위한 설정 변경 방법을 간단하게 소개하고자 합니다. 1. 기본 폰트 설정 확인 블로그 이전을 시작하며 jekyll 테마를 이용했습니다. 대개 공통적으로 적용되는 UI관련 스타일시트는 main.scss, com...

이사중

Hello world! 미루고 미루던 블로그 이전 작업을 하고 있습니다. 원래는 티스토리를 사용했었는데 계정 통합이다 뭐다 자꾸 뭘 하라고 해서 이참에 이전하고 있습니다. 게시글도 몇몇개는 삭제합니다. 이 안내는 일정 시간이 지난 후에 내립니다. 기존 블로그 : 탄산의 개발상자 https://devtansan-s-tocking.tistory.com...

TS-알고리즘 Leetcode(Easy)-Single Number

Question Given a non-empty array of integers nums, every element appears twice except for one. Find that single one. You must implement a solution with a linear runtime complexity and use only cons...

JS-알고리즘 Leetcode(Easy)-Binary Tree Inorder Traversal

Question Given the root of a binary tree, return the inorder traversal of its nodes’ values. 대충 해석 주어진 이진트리를 중위순회한 값을 반환하세요. Example #1 Input: root = [1,null,2,3] Output: [1,3,2] #2 Input: root ...

JAVA-알고리즘 Leetcode(Medium)-Design Browser History

Question You have a browser of one tab where you start on the homepage and you can visit another url, get back in the history number of steps or move forward in the history number of steps. Implem...