월간 보관물: 2020 12월

[LeetCode] 55 – Jump Game

problem : https://leetcode.com/problems/jump-game/ Given an array of non-negative integers nums, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Determine if you are able to reach the last … 계속 읽기

카테고리: 기초 개발실력 다지기, ICT, LeetCode | 태그: , , , , , , , , , | 댓글 남기기

[LeetCode] 54 – Spiral Matrix

problem : https://leetcode.com/problems/spiral-matrix/ Given an m x n matrix, return all elements of the matrix in spiral order. Example 1: Input: matrix = [[1,2,3],[4,5,6],[7,8,9]] Output: [1,2,3,6,9,8,7,4,5] Example 2: Input: matrix = [[1,2,3,4],[5,6,7,8],[9,10,11,12]] Output: [1,2,3,4,8,12,11,10,9,5,6,7] Constraints: m == matrix.length n == matrix[i].length 1 <= m, n … 계속 읽기

카테고리: 기초 개발실력 다지기, ICT, LeetCode | 태그: , , , , , , , , | 댓글 남기기

[LeetCode] 94 – Binary Tree Inorder Traversal

problem : https://leetcode.com/problems/binary-tree-inorder-traversal/ 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] Example 2: Input: root = [] Output: [] Example 3: Input: root = [1] Output: [1] Example … 계속 읽기

카테고리: 기초 개발실력 다지기, ICT, LeetCode | 태그: , , , , , , , | 댓글 남기기

[LeetCode] 38 – Count and Say

problem : https://leetcode.com/problems/count-and-say/ The count-and-say sequence is a sequence of digit strings defined by the recursive formula: countAndSay(1) = “1” countAndSay(n) is the way you would “say” the digit string from countAndSay(n-1), which is then converted into a different digit string. To determine how … 계속 읽기

카테고리: 기초 개발실력 다지기, ICT, LeetCode | 태그: , , , , , , , , , | 댓글 남기기

[Windows] grep 과 동일한 명령어

Linux 에서 사용하는 ‘grep’ 명령어는 IT 업종자 분들에게는 굉장히 친숙할 겁니다. 다만, ‘findstr’ 명령어는 생소하실 텐데요. 아래와 같은 방법으로 ‘findstr’ 명령어로 ‘grep’ 과 동일한 기능을 사용할 수 있습니다. ‘172.172.172.’ Prefix 를 포함하는 IP 가 있는지 확인 이 글이 누군가에게 도움이 … 계속 읽기

카테고리: ICT, powershell, window | 태그: , , , , , , , , | 댓글 남기기

Robocopy 마이그레이션 병렬처리 방법

Windows 에서 Robocopy 를 통해 데이터 마이그레이션 할 때, 디렉토리가 수없이 쪼개져 있고, 각 디렉토리 별 데이터도 많다면 완료하는데 시간이 굉장히 오래 걸린다. 이러한 문제를 해결하기 위해, Robocopy 명령어를 병렬처리하는 방법을 소개하고자 한다. 예를 들어, source 디렉토리에 ‘000’ 부터 ‘999’ … 계속 읽기

카테고리: ICT, window | 태그: , , , , , , , | 댓글 2개

[PHP] 문자열 포함여부 구분하기

문자열에 특정 문자열이 포함되어 있는지 확인하고자 할 때, strpos() 함수를 통해 확인이 가능하다.

카테고리: ICT, php | 태그: , , , , , , , , , , | 댓글 남기기

[리눅스] 서버 NIC 포트 위치 확인 방법

리눅스 서버에 NIC 이 여러개 장착되어 있을 경우, 특정 인터페이스의 포트 위치가 어디인지 확인하는 방법을 소개합니다. 방법은 간단합니다. 아래 명령어를 통해 특정 NIC 인터페이스 포트 LED를 깜빡이게 하면 됩니다. 위 명령어를 수행하면 ‘ctrl + c’ 키로 끝낼 때까지, 해당 포트 … 계속 읽기

카테고리: ICT, linux | 태그: , , , , , , , , | 댓글 남기기