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 contains a single digit. Add the two numbers and return the sum as a linked list.
You may assume the two numbers do not contain any leading zero, except the number 0 itself.
Feign 이라는 Client를 사용하여 Http 통신을 할 수 있다.
Feign에 대한 기본적인 개념은 이 글에서 다루지 않을 것이며
혹시라도 기본 개념을 모른다면 Spring Cloud Openfeign 글을 추천한다.
우선 이 글을 작성하는 이유는 다음과 같다.
Feign을 실제로 Code 레벨에서 어떻게 사용하는지 찾아보았는데
입맛에 맞는 자료를 찾을 수 없었고
그래서 직접 코드를 가다듬어서 만들기로 하였다.
그리고 그 내용들을 공유하면 좋겠다 싶어서 작성하게 되었다.
Given the head of a linked list, remove the nth node from the end of the list and return its head.
Follow up: Could you do this in one pass?
알고리즘 문제를 풀다 보면
Linked List의 순서를 reverse 해야 하는 경우가 종종 있었다.
그 경우 매번
어떻게 해야 하나 고민을 하는데
그런 시간을 단축하기 위해 정리해놓으려고 한다.
Given a non-empty array of integers, return the k most frequent elements.