본문 바로가기

전체 글

(424)
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..
How to use dual taskbar in Windows7, 10. 윈도우7 듀얼모니터 사용 How to use dual taskbar in Windows7, 10. 윈도우7 듀얼모니터 작업표시줄 사용 윈도우즈 10에서는 기본적으로 듀얼모니터를 사용할 때에도 작업표시줄을 두 화면 모두보이도록 확장이 가능한데, 윈도우 7에서는 듀얼모니터 후 작업표시줄 확장 기능이 없다. 구글에서 "Dual monitor taskbar" 검색 후 설치, 사용.다만, 약간 불안정해서 가끔 오류가 나긴 하는데 사용하는데 무리 없어서 괜찮은 듯 Windows 10 provides dual monitor taskbar in basic function, but not in Windows 7.If you wanna use dual monitor with dual taskbar, use this programme. Search..
OpenCV Java/C++ FourierFastTransferShift(fftshift) 푸리에 변환 후 위치 재설정 함수 (Matlab - fftshift) - (1) OpenCV Java/C++ FourierFastTransferShift(fftshift) 푸리에 변환 후 위치 재설정 함수 (Matlab - fftshift) - (1) Matlab 에서 푸리에 변환 관련 코드를 -> OpenCV를 사용한 Java 코드로 옮기며 fftshift 함수를 찾고 있었는데, 제대로 된 코드를 못찾아서 직접 만든 코드를 올림. 퍼포먼스는 확인 안해봐서 다른 library와 비교해서 어떤지 모르겠음 OpenCV core 이용하여 shift 시키는 함수 추가 포스팅함 (아래) - 성능 향상됨 2018/11/16 - [Programming/Image Processing] - OpenCV Java/C++ FourierFastTransferShift(fftshift) 푸리에 변환 후 위..
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 ..
C++ Math - floor/ceil/round (내림/올림/반올림) C++ Math - floor/ceil/round (내림/올림/반올림) 자바 Math class 관련 포스팅을 하면서 C++도 같이 한다.C++ 은 MSDN에 자세하게 잘 나와있어서 거의 고대로 가져오고 반올림만 추가했다. math.h 헤더 추가해주고, floor -> 내림 (floor)ceil -> 올림 (ceiling)round -> 반올림 (round) The thing different with Java Math class is that the math in C++ about floor, round, and ceil is not only for double data type, but also include float. 자바의 Math 클래스와 다른 점은, 자바에서는 abs (절대값) 빼고는 전부 ..
Java 자바 Math class - round/ceil/floor/abs (반올림/올림/내림/절대값) 자바에서 쓰는 Math 클래스 (Static class - 정적 클래스) 최근에 Matlab 에서 Java로 포팅을 할 일이 있어서 Math 클래스를 자주 쓰는데 뭐라도 하나 블로그에 올려놓고 싶어서 쓰게 되었다. 3 methods below are basically ceil/floor/round the double data type, and return the integer.0 shape double data. 아래 3가지는 기본적으로 실수 소수점을 내림/올림/반올림 해서 정수.0 형태의 double을 반환한다. floor -> 내림 (바닥으로 floor)ceil -> 올림 (천장으로 ceiling)round -> 반올림 (반올림 round) 절대값은 long, float, int, double 전부 ..
Aracade Intro #9 AllLongestStrings AllLongestStringsGiven an array of strings, returns another array containing all of it's longest strings입력받은 문자 배열에서, 가장 긴 문자들만 따로 뽑은 배열을 리턴해라 //Process//1. Input strings array//2. Iterate from begin to the end// 2.1. Check string's length// 2.2. If it's longer than longest string, -> make new output longest string array// 2.3. If it's same length, -> add//3. Return outputArray //처리과정//1. 문자배열을 ..