본문 바로가기

DataStructure

(75)
Design pattern - Singleton (디자인패턴 - 싱글턴) Design pattern - Singleton (디자인패턴 - 싱글턴) It's used alot because it's easy to use. Example would be written in Java or C++, maybe in Java. And it's simple if you understand the whole context. If you wonder the classdiagram, then just search. Important things.. 1. It's the only instance using specific class, in heap memory 2. This class has a self instance as a attribute(static) 3. Private constru..
Java parse double dataType after dot, 자바 소수점 이하 출력개수 조절 자바 소수점 이하 출력개수 조절 Java parse double dataType after dot 자바의 기본 자료형 doubleDouble class 의 parseDouble 메소드와 String class 의 format 메소드를 사용한다. primitive data type "double" in java.Use Double class to use parseDouble method, and String class to use format method. - 문자로 나오는 소수점을 원하는 만큼 잘라내고 파싱해서 double 값을 얻어낸다. - Get double value after parsing from string format double which you wanna get e.g. public st..
Windows 10에서 부팅시 계정 암호를 입력하지 않는 방법(How to Skip the Windows 10 Login Screen and Login) Windows 10에서 부팅시 계정 암호를 입력하지 않는 방법(How to Skip the Windows 10 Login Screen and Login) 1. Windows 키 + R을 눌러서 실행 창에 netplwiz를 입력합니다.2. 사용중인 계정의 이름을 확인한 후 [사용자 이름과 암호를 입력해야 이 컴퓨터를 사용할 수 있음]을 체크 해제합니다. 1. Windows Key + R, and execute "netplwiz"2. uncheck the box labeled “Users must enter a user name and password to use this computer.” Something else... 2018/10/10 - [Computer general/Windows] - GPU G..
GPU Graphic card performance benchmark 그래픽카드 퍼포먼스 벤치마크 (NVidia etc..) GPU Graphic card performance benchmark 그래픽카드 퍼포먼스 벤치마크 (NVidia etc..) 무려 400만원짜리 (299 US dallar) NVidia titan V 를 회사에서 사서..장착 후 드라이버 설치를 하고.. 구매완료를 하기 전에 성능 테스트를 잠깐 해보았다. 3DMark -> benchmark sitehttps://benchmarks.ul.com/3dmark?redirected=true# 위의 사이트에 접속해서 Window edition 에서 다운을 받아서 설치한다. 유료로 쓰면 더 여러가지 기능을 쓸 수 있는데, Basic edition 으로 다운받아서 설치한다.(이후에 업그레이드 가능하나, 무료버전 2가지만 테스트 할 것임) 설치 후 3DMark 를 실행..
Aracade Intro #12 SortByHeight CodeFights, CodeSignal arcade #12 SortByHeight Rearrange the people by their heights in a non-descending order without moving the trees. ( -1 would be tree ) 입력받은 사람들의 키와 나무(-1) 값 배열에서, 나무값의 위치는 건드리지 않고 사람들의 키를 오름차순 정렬하라 e.g. a = [-1, 150, 190, 170, -1, -1, 160, 180] sortByHeight(a) = [-1, 150, 160, 170, -1, -1, 180, 190] 함수를 통과하고 정렬된 값 //Process//1. Input height vector//2. Iterate from 1 to the..
Aracade Intro #11 IsLucky CodeFights, CodeSignal Arcade #11 IsLucky If the sum of half of digits is equal to the sum of second half, it's true, or false. 자릿수가 짝수개인 정수를 입력받고,앞자리 절반의 자릿수 합과 뒷자리 절반 자릿수의 합이 같으면 true, 아니면 false e.g. 123321 -> true 1 + 2 + 3 = 3 + 2 + 1 1230 -> true 1 + 2 = 3 + 0 124582 -> false 1 + 2 + 4 != 5 + 8 + 2 124214 -> true 123456 -> false //Process//1. Input int//2. Get length of input int (alway eve..
Aracade Intro #10 CommonCharacterCount CodeFights arcade intro #10 Given two strings, get the total number of common characters between them. 주어진 2개의 String에서, 똑같은 Character의 총 개수를 구하라. //Process//1. Input two strings//2. Iterate first string from begin to the end// 2.1. If the number is not existed in the charArray1, then add and count// 2.2. If existed, just count//3. Iterate second string from begin to the end// 3.1. If the number..
Windows 10 show desktop icon(My computer, Document...) 윈도우 10 데스크톱 아이콘 보기 (내컴퓨터, 내문서 등) How to show Desktop icons visible 바탕화면 아이콘 보이게 하기 1. Right click on the Desktop 2. Click Personalization 3. Click Theme 4. Choose the icons you want to make visible 5. Save and exit 1. 바탕화면 오른쪽 클릭 2. 개인 설정 클릭 3. 왼쪽에서 테마에 클릭 4. 보이게 하고 싶은 바탕화면 아이콘 설정 5. 저장 종료 그외 알고리듬 문제 2018/09/26 - [Algorithm/Code Signal (Code Fights)] - Aracade Intro #9 AllLongestStrings2018/09/24 - [Algorithm/Code Signal (Code ..