Mason

  • 홈
  • 태그
  • 방명록

Binary Search 1

두 배열을받아 부분집합 찾아내기

쉬운문제이지만 여러가지 알고리즘을 활용해 비교해 보았다. 문제 두 개의 배열(base, sample)을 입력받아 sample이 base의 부분집합인지 여부를 리턴해야 합니다. 문제 입력 예시 public class Main { public static void main(String[] args) { Solution solution = new Solution(); int[] base = new int[]{7, 1, 2, 3, 4, 5}; int[] sample = new int[]{1, 3,7}; boolean test = solution.isSubsetOf(base, sample); System.out.println(test); } } 해결방법 스트림을 이용한 해결방법 class Solution { pu..

Coding Test Practice 2023.04.03
이전
1
다음
더보기
프로필사진

Mason

  • 분류 전체보기 (140)
    • Projects (19)
      • Personal project - 게시판 만들기 (9)
      • Team project - 스택오버플로우 클론코딩 (3)
      • Team project - ShellWe (7)
    • Personal Research (5)
    • Java (52)
      • Java (25)
      • Spring & Spring Boot (20)
      • Spring Security (7)
      • Spring WebFlux (0)
    • DB (5)
    • Javascript (9)
    • Nodejs (6)
    • Typescript (4)
    • Datastructure & Algorithm (16)
    • Coding Test Practice (9)
    • Basics of Computer Science .. (7)
    • Deployment (2)
    • Docker (0)
    • Linux Ubuntu (2)
    • Git and Github (2)
    • IntelliJ (1)
    • CS & Interview (1)

Tag

비동기, 동기, 재귀, optional, mysql, GraphQL, UsernamePasswordAuthenticationToken, annotation, Thread, Enum, OOP, sql, 객체지향 프로그래밍, JPA, DB, transaction, apollo, 스레드, SecurityContextHolder, typescript,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/07   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바