전체 글247 [Java]Flow API 참고서적: 모던 자바인 액션( 라울-게이브리얼 우르마 , 마리오 푸스코 , 앨런 마이크로프트 저자(글) · 우정은 번역 ,한빛미디어)리액티브 프로그래밍: 여러 어플리케이션을 통합, 기본전제는 하나 이상의 이벤트를 비동기로 처리하는것핵심 인터페이스: Publisher /Subscriber /Subscription /ProcessorPublisher: 데이터 생산자Subscriber: 데이터 소비자Subscription: Publisher와 Subscriber 간의 연결을 관리Processor: Publisher와 Subscriber 역할을 모두 수행 2025. 3. 31. [Mochito] Spring의 단위 테스트 출처: https://mangkyu.tistory.com/145 [Spring] JUnit과 Mockito 기반의 Spring 단위 테스트 코드 작성법 (3/3)이번에는 Spring 기반의 웹 애플리케이션에서 테스트를 작성하는 방법에 대해 알아보도록 하겠습니다. 1. Mockito 소개 및 사용법 [ Mockito란? ] Mockito는 개발자가 동작을 직접 제어할 수 있는 가짜 객mangkyu.tistory.com스프링 단위테스트 하는 방법 1.Mochito를 사용하자 Mochito: 개발자가 동작을 직접 제어할수 있는 가짜 객체를 지원하는 테스트 프레임워크 Spring 여러객체들간의 의존성 때문에 단위 테스트가 어려운데 이를 해결할수 있음 가짜 객체를 주입해서 가짜 객체에 원하는 결과를 Stu.. 2025. 3. 29. [Best Time to Buy and Sell Stock] 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 different day in the future to sell that stock.Return the maximum profit you can achieve from this transaction. If you cannot achieve any profit, return 0 출처: https://leetcode.com/problems/best-time-to-buy-and-sell-st.. 2025. 3. 29. [검색 알고리즘] 선형검색(부분발췌: 보요 시바타, 번역 강민 이지스퍼블리싱, 『Do it! 자료구조와 함께 배우는 알고리즘 입문-자바 』,p.98~129)직선 모양으로 늘어선 배열에서 원하는 키값을 갖는 요소를 만날때까지 맨 앞부터 순서대로 요소를 검색메서드 seqSearch: 배열(따로 정렬하지 않은 상태)의 처음부터 끝까지 n개인 요소를 대상으로 값이 key인 요소를 선형검색하였고, 검색한 요소의 인덱스를 반환함선형검색(부분발췌:보요 시바타, 번역 강민 이지스퍼블리싱, 『Do it! 자료구조와 함께 배우는 알고리즘 입문-자바 』,p.98)직선 모양으로 늘어선 배열에서 원하는 키값을 갖는 요소를 만날때까지 맨 앞부터 순서대로 요소를 검색 메서드 seqSearch: 배열(따로 정렬하지 않은 상태)의 처음부터 끝까지 n개.. 2025. 3. 28. [Merge Two Sorted Lists] 출처:https://leetcode.com/problems/merge-two-sorted-lists/description/ You are given the heads of two sorted linked lists list1 and list2.Merge the two lists into one sorted list. The list should be made by splicing together the nodes of the first two lists.Return the head of the merged linked list. 당신에게 두 개의 정렬된 연결 리스트 list1과 list2의 시작점(머리)가 주어집니다. 두 리스트를 하나의 정렬된 리스트로 병합하세요. 이 리스트는 처음 두 리스트의 노드들을.. 2025. 3. 27. [Valid Parentheses] 출처:https://leetcode.com/problems/valid-parentheses/description/Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.An input string is valid if:Open brackets must be closed by the same type of brackets.Open brackets must be closed in the correct order.Every close bracket has a corresponding open bracket of the same type.해석: 문자 '(.. 2025. 3. 26. 이전 1 2 3 4 5 6 ··· 42 다음