본문 바로가기

전체 글33

[Java] JVM이란? 그리고 Garbage Collector JVM(Java Virtual Machine) 이란? 자바 애플리케이션을 클래스 로더를 통해 읽어 들여 이를 자바 API와 함께 실행하는 역할을 한다. 또한, JAVA와 OS 사이에서 중개자 역할을 수행하여 JAVA가 OS에 구애받지 않고 재사용을 가능하게 해준다. 그리고 가장 중요한 메모리 관리, Garbage Collection을 수행한다. JVM의 구성 Class Loader (클래스 로더) 자바 컴파일러에 의해 컴파일된 바이트코드(.class파일)을 JVM의 Runtime Data Area로 로드하는 역할을 한다. 이는 자바 애플리케이션이 실행 중일때 (runtime) 수행된다. Execution Engine (실행 엔진) 클래스 로더가 로드한 바이트코드를 실행시킨다. 이때 바이트코드(.class.. 2021. 4. 28.
[HackerRank][String Manipulation] Special String Again 문제 링크 www.hackerrank.com/challenges/special-palindrome-again/problem Special String Again | HackerRank Find Special sub-strings in a string. www.hackerrank.com A string is said to be a special string if either of two conditions is met: All of the characters are the same, e.g. aaa. All characters except the middle one are the same, e.g. aadaa. A special substring is any substring of a string whic.. 2021. 4. 23.
[HackerRank][String Manipulation] Sherlock and the Valid String 문제 링크 www.hackerrank.com/challenges/sherlock-and-valid-string Sherlock and the Valid String | HackerRank Remove some characters from the string such that the new string's characters have the same frequency. www.hackerrank.com Sherlock considers a string to be valid if all characters of the string appear the same number of times. It is also valid if he can remove just character at index in the st.. 2021. 4. 23.
[Programmers][RegEx] 2021 KAKAO BLIND RECRUITEMENT - 신규 아이디 추천 문제 링크 programmers.co.kr/learn/courses/30/lessons/72410?language=java 코딩테스트 연습 - 신규 아이디 추천 카카오에 입사한 신입 개발자 네오는 "카카오계정개발팀"에 배치되어, 카카오 서비스에 가입하는 유저들의 아이디를 생성하는 업무를 담당하게 되었습니다. "네오"에게 주어진 첫 업무는 새로 programmers.co.kr 카카오에 입사한 신입 개발자 네오는 "카카오계정개발팀"에 배치되어, 카카오 서비스에 가입하는 유저들의 아이디를 생성하는 업무를 담당하게 되었습니다. "네오"에게 주어진 첫 업무는 새로 가입하는 유저들이 카카오 아이디 규칙에 맞지 않는 아이디를 입력했을 때, 입력된 아이디와 유사하면서 규칙에 맞는 아이디를 추천해주는 프로그램을 개발하는.. 2021. 4. 22.