moonscode

    NumberOfDiscIntersections 1

    문제 // Codility // Sorting // NumberOfDiscIntersections // (성능부족)

    업데이트 :: 2018.08.21 문제코드결과문제NumberOfDiscIntersections Compute the number of intersections in a sequence of discs. 코드1차 풀이class Solution { public int solution(int[] A) { // 디스크에 경계가 있음 // [1, 5, 2, 1, 4, 0] int pairs = 0; for(int i=0; i 10000000 ? -1 : pairs); } } 2차 풀이import java.util.*; class Solution { public int solution(int[] A) { // == 최소값 & 최대값 배열 == MyArr[] arr = new MyArr[A.length]; for(i..

    CS/코딜리티 2018.08.21
    1
    더보기
    프로필사진

    hello world :)

    • moonscode (236)
      • 프로그래밍언어 (25)
        • Python (1)
        • JavaScript (24)
        • Java (0)
      • DevOps (40)
        • MacOS (8)
        • Web (6)
        • Git (13)
        • VSCode (1)
        • JetBrains (9)
        • Browser (2)
      • FrontEnd (8)
        • TypeScript (2)
        • React (1)
        • NextJS (1)
        • Redux (4)
      • NodeJS (4)
      • Java (28)
        • Java 개념 (17)
        • Java 구현 (4)
        • JavaFX 개념 (4)
        • JavaFX 구현 (3)
      • Spring (51)
        • DI & AOP (16)
        • JDBC (6)
        • WEB (7)
        • MVC (10)
        • REST (5)
        • Security (2)
        • MyBatis (5)
      • Server (1)
        • AWS (1)
      • DB (12)
        • MySQL (12)
        • SQL (0)
        • SQL (advanced) (0)
      • CS (63)
        • 자료구조 문제 (30)
        • 자료구조 구현 (2)
        • 코딜리티 (15)
        • 프로그래머스 (15)
      • 개인 (1)
        • 노트 (1)
        • iOS (0)

    Tag

    js, MVC, jdbc, Di, java, Spring, git, 자바스크립트, codility, Rest, mac, Tree, OSX, 자료구조, JavaScript, list, WEB, Counting Elements, Bean, aop,

    최근글과 인기글

    • 최근글
    • 인기글

    최근댓글

    공지사항

    • FE - JS, TS, React, RxJS
    • BE - Spring & MSA

    페이스북 트위터 플러그인

    • Facebook
    • Twitter

    Archives

    Calendar

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

    티스토리툴바