본문 바로가기 메뉴 바로가기

msna

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

msna

검색하기 폼
  • 분류 전체보기 (26)
    • leetcode medium (1)
    • leetcode easy (3)
    • IT (6)
    • today'work (13)
  • 방명록

분류 전체보기 (26)
7. Reverse Integer

https://leetcode.com/problems/reverse-integer/ Given a 32-bit signed integer, reverse digits of an integer. 32비트의 부호있는 정수가 있다, 정수의 숫자를 반전시켜라. Example 1:Input: 123Output: 321 Example 2:Input: -123Output: -321 Example 3:Input: 120Output: 21 Note: Assume we are dealing with an environment which could only store integers within the 32-bit signed integer range: [−231, 231 − 1]. For the purpose of thi..

leetcode easy 2019. 2. 28. 23:10
2. Add Two Numbers

https://leetcode.com/problems/add-two-numbers/ You are given two non-empty linked lists representing two non-negative integers.The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list. You may assume the two numbers do not contain any leading zero, except the number 0 itself. Example:Input: (2 -> 4 -> 3) + (5 -> 6 -..

leetcode medium 2019. 2. 21. 00:06
1. Two Sum

https://leetcode.com/problems/two-sum/ Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not use the same element twice. Example :Given nums = [2, 7, 11, 15], target = 9, Because nums[0] + nums[1] = 2 + 7 = 9,return [0, 1]. 주어진 정수배열에서 더하여 특정값이 되는 두 숫자의 인덱스를 반환하라.각 입..

leetcode easy 2019. 2. 20. 00:56
Excel2Markdown 엑셀->마크다운 offline

최근 설계서 작성에서 마크다운을 쓰게되었다.업무 특성상 테이블을 많이 쓰게 되는데, 난 엑셀에 데이터를 쌓아두고 필터링해가면서 일하는 게 더 편하다. 그래서 엑셀로 만들고 최종결과본 만들 때만 엑셀을 복사해서 만들어낸다. 인터넷에서 excel to markdown으로 검색하면 몇몇 사이트가 나와서 처음에는 그걸 이용했는데, 보안상 온라인툴은 쓰지 말라는 지시사항이 있어 오프라인용으로 만들어보았다. 되도록이면 칸의 길이를 맞추려고 했는데, 전각문자에 대한 체크를 넣지 않아서 잘 안맞는다. 어차피 작업 자체는 엑셀로 하고 결과물은 마크다운엔진이 예쁘게 보내주니 그 부분까지는 고치지 않겠다.

카테고리 없음 2019. 2. 3. 03:10
SnakeYAML에서 java.util.Date대신 다른 클래스(LocalDateTime)사용하기

SnakeYAML에서 yaml.load()실행시, 값이 "2019-01-01T00:00:00"인 경우 java.util.Date로 만들어지게 된다. 출력할 때 원하는 데이터타입으로 변경해도 되지만, load()실행시 원하는 데이터타입으로 만들어지도록 설정하는 방법을 알아본다. 내가 원하는 데이터타입은 LocalDateTime이다. 공식문서 중에 데이터 타입과 관련된 부분은https://bitbucket.org/asomov/snakeyaml/wiki/Documentation#markdown-header-implicit-types인데, Date를 LocalDateTime으로 바꾸는 방법은 못 찾았다. 그래서 그냥 코드를 찾아 들어가봤다. Yaml 기본 생성자를 보면 Constructor, LoaderOpti..

카테고리 없음 2019. 2. 3. 02:52
YAML으로 마스터데이터 마이크로서비스 만들기

배경 지금 현장은 새로 만드는 기능은 마이크로서비스로 구현하려고 하고 있다. 안드로이드 어플과 그외 관리서비스에서 쓸 마스터데이터까지 마이크로서비스로 만들어서 JSON으로 넘겨주란다. 이렇게 하면 어플을 업데이트 하지 않아도 초기치나 표시되는 라벨등등을 변경할 수 있다. 그래서 데이터 샘플을 보는데... 대충 이러하단다. 어떻게할까?샘플 데이터를 보기 전에는 마스터데이터니까 그냥 key:value만일거라고 믿었었는데, action_list처럼 init의 값이 오브젝트이고 image_path는 리스트이다. 게다가 앞으로 어떤 구조의 데이터를 넣을지도 모르는 상황. 그래서 테이블을 나누고 필요한 컬럼을 추가해서 아래와 같은 테이블 구조를 만들었다.테스트용 DB가 없어서 실제로는 안해봤지만 대충 자기 자신보다..

카테고리 없음 2019. 2. 2. 15:35
이전 1 2 3 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • AWS #X-Ray
  • PostgreSQL #sequnceName
  • Two Sum
  • palindrome number
  • 로그테스트 #콘솔로그테스트 #System.out
  • reverse integer
  • mybatis @insert값 @update값
  • json
  • 로그파일인덱스
  • multipleIntegrationFlow
  • PostgreSQL #FOR UPDATE #SKIP LOCKED
  • springintegration #파일감시 #디렉토리감시 #파일완료검사
  • lombok #maven build #sym
  • SnakeYAML
  • excel to markdown
  • Postgresql #MultiTruncate
  • Maven LF #메이븐 개행문자
  • cannotResolveSymbol
  • aws #aws region #aws credential #aws region provider #aws credential provier
  • logback #logstash #LoggingEventCompositeJsonEncoder #로그JSON
  • yaml
  • opencv로qr코드인식
  • spring #redis #redis-cluster
  • leetcode
  • QR코드읽기 #ReadQRCode
  • add two numbers
  • excel table
  • Python #Powertools
  • spring-integration
more
«   2025/05   »
일 월 화 수 목 금 토
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 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바