본문 바로가기

분류 전체보기

(426)
Aracade Intro #22 avoidObstacles. Algorithm, 알고리즘, Codefights, CodeSignal, regx, 정규표현식, 코드파이트, 코드시그널, c++ java c# scalar Aracade Intro #22 avoidObstacles. Algorithm, Codefights, CodeSignal, regx, 정규표현식, 코드파이트, 코드시그널, c++ java c# scalar Q. You are given an array of integers representing coordinates of obstacles situated on a straight line. Assume that you are jumping from the point with coordinate 0 to the right. You are allowed only to make jumps of the same length represented by some integer. Find the minimal len..
Matlab - Difference between mean and mean2 in Matlab, Matlab mean/mean2 함수 차이점, opencv java c++ Matlab - Difference between mean and mean2 in Matlab, Matlab mean/mean2 함수 차이점 간략한 차이로, - mean 함수는 행이나 열의 한줄한줄씩 평균을 구해서 각 행/열의 평균을 나열해서 보여준다. - mean2 함수는 mat 자체의 전체 평균을 구해준다. 자세한 용법이나 내용은 ( 여기 ) 공식홈페이지 Simply.. - mean function shows each row's or column's average. - mean2 function shows average of all value in matrix. for detail.. ( here ) OpenCV에서 double 형으로 전체 평균을 구한 값과 달라서 어디서 달라졌는지 확인중.. Imm..
Aracade Intro #21 isIPv4Address. Algorithm, 알고리즘, Codefights, CodeSignal, regx, 정규표현식, 코드파이트, 코드시그널, c++ java c# scalar Aracade Intro #21 isIPv4Address. Algorithm, Codefights, CodeSignal, 코드파이트, 코드시그널, c++ java c# scalar Q. An IP address is a numerical label assigned to each device (e.g., computer, printer) participating in a computer network that uses the Internet Protocol for communication. There are two versions of the Internet protocol, and thus two versions of addresses. One of them is the IPv4 address. IP주소..
Aracade Intro #20 arrayMaximalAdjacentDifference. Algorithm, Codefights, CodeSignal, 코드파이트, 코드시그널, c++ java c# scalar Aracade Intro #20 arrayMaximalAdjacentDifference. Algorithm, Codefights, CodeSignal, 코드파이트, 코드시그널, c++ java c# scalar Q.Given an array of integers, find the maximal absolute difference between any two of its adjacent elements. 주어진 정수 배열 중에서, 인접한 정수끼리 최대의 차이값(절대값) 을 구하여라 e.g.Input -> inputArray = [2, 4, 1, 0]Output -> arrayMaximalAdjacentDifference(inputArray) = 3. ? index 1, 2 -> 4 and 1 -> 3 //..
Aracade Intro #19 AreEquallyStrong. Algorithm, Codefights, CodeSignal, 코드파이트, 코드시그널, c++ java c# scalar Aracade Intro #19 AreEquallyStrong. Algorithm, Codefights, CodeSignal, 코드파이트, 코드시그널, c++ java c# scalar Q. Call two arms equally strong if the heaviest weights they each are able to lift are equal. Call two people equally strong if their strongest arms are equally strong (the strongest arm can be both the right and the left), and so are their weakest arms. Given your and your friend's arms' lift..
Difference between String, StringBuilder, and StringBuffer Class 차이점 / Java c++ 문자열, example 예제 Difference between String, StringBuilder, and StringBuffer Class 차이점 / Java c++ 문자열, example 예제 Difference Between String , StringBuilder And StringBuffer Classes (영어 원문 사이트) 확인은 여기로 String String is immutable ( once created can not be changed )object . The object created as aString is stored in the Constant String Pool.Every immutable object in Java is thread safe ,that implies String is also t..
Complex number matrix division, multiply in OpenCv like Matlab (실수부와 복소수허수부 포함된 매트릭스 곱셈, 나눗셈) Complex number matrix division in OpenCv like Matlab (실수부와 복소수허수부 포함된 매트릭스 나눗셈) Real number part + Complex number part You could do the math very easily in Matlab But in OpenCV, you have to use 2 channel Mat and fill in the mat using real and complex number for showing frequency etc.. A code below is kinda dirty, but I compared Matlab code result and JavaCV code result using JUnit. JUnit was so ..
Aracade Intro #18 PalindromeRearranging, Codefights, CodeSignal, 코드파이트, 코드시그널, c++ java c# scalar Aracade Intro #18 PalindromeRearranging, Codefights, CodeSignal, 코드파이트, 코드시그널, c++ java c# scalar Given a string, find out if its characters can be rearranged to form a palindrome. 주어진 문자열이, 회문(중간을 기준으로 대칭)자가 될수 있는지 확인한다. e.g. abcba / 다시합창합시다 / bbbbcddcbbbb / 말해말 Input -> "aabb"Output -> palindromeRearranging(inputString) = true We can rearrange "aabb" to make "abba", which is a palindrome. //Pr..