목록Programming Language (43)
매일매일 IT
Getter / Setter 긍정적 기능변수에 새로운 값을 할당할 때마다 Validation Check 가능Lazy Loading 가능Lazy Loading : 사이즈가 큰 데이터를 로딩할 때 사용자의 브라우저 화면에 나타나지 않은 이미지까지 로딩을 하면 페이지 로딩이 느려질 수가 있다. Lazy Loading은 사용자 브라우저에 보이는 이미지만 로딩하고 다른 이미지들은 사용자가 스크롤 하면서 이미지에 가까워질 시 로딩된다.Read, Write 권한 부여 : getter - public, setter - private 하게 권한을 다르게 줄 수 있다.상속의 경우 getter, setter를 Overriding 하여 클래스마다 Validation 등을 다르게 적용 가능하다.캡슐화 구현법 중 가장 기본적인 ..
자바ㅠㅠ!! 연속 수에서의 가장 큰 곱 The four adjacent digits in the 1000-digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832. [ 1000 자리 숫자에서 가장 큰 곱을 갖는 네 개의 인접 숫자는 9 × 9 × 8 × 9 = 5832이다.]73167176531330624919225119674426574742355349194934 96983520312774506326239578318016984801869478851843 85861560789112949495459501737958331952853208805511 12540698747158523863050715693290963295227443043557 668..
자바ㅠㅠ!! 소수의 10001번째 By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. [ 처음 6 개의 소수 (2, 3, 5, 7, 11, 13)를 나열하면 여섯 번째 소수가 13임을 알 수 있습니다.]What is the 10001st prime number? [ 10001 번째 소수는 무엇?]
자바ㅠㅠ!! 합 제곱 차이 The sum of the squares of the first ten natural numbers is, [ 처음 10 개의 자연수의 제곱의 합은,]12 + 22 + ... [ 12 + 22 + ...] + 102 = 385 [ + 102 = 385]The square of the sum of the first ten natural numbers is, [ 처음 10 개의 자연수의 합의 제곱은,](1 + 2 + ... [ (1 + 2 + ...] + 10)2 = 552 = 3025 [ + 10) 2 = 552 = 3025]Hence the difference between the sum of the squares of the first ten natural numbers an..
자바ㅠㅠ!! 가장 작은 배수 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. [ 2520은 나머지 없이 1에서 10까지의 숫자로 나눌 수있는 가장 작은 숫자다.]What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20? [ 1에서 20까지 모든 숫자로 균등하게 나눌 수있는 가장 작은 양수는 무엇?]
자바ㅠㅠ!! 가장 큰 회문 곱 A palindromic number reads the same both ways. [ 회문수는 같은 방법으로 읽는다.] The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. [ 두 자리 숫자 두 개를 곱하여 만든 최대 회문은 9009 = 91 × 99입니다.]Find the largest palindrome made from the product of two 3-digit numbers. [ 2개의 3 자리 숫자의 곱으로 만들어진 최대 회문을 찾아라.]
자바ㅠㅠ!! 소수의 가장 큰 인수 The prime factors of 13195 are 5, 7, 13 and 29. [ 13195의 기본 인수는 5, 7, 13 및 29 이다.]What is the largest prime factor of the number 600851475143 ? [ 600851475143의 가장 큰 소수 인수는 무엇?]
자바ㅠㅠ!! 피보나치 수열에서 짝수의 합 구하기 Each new term in the Fibonacci sequence is generated by adding the previous two terms. [ 피보나치 수열의 각 새로운 항은 앞의 두 항을 더하여 생성된다.] By starting with 1 and 2, the first 10 terms will be: [ 1과 2로 시작하면 처음 10 개의 항은 다음과 같다.]1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... [ 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...]By considering the terms in the Fibonacci sequence whose values do not exceed ..
자바ㅠㅠ!! 3또는 5의 배수의 합 구하기 3 또는 5의 배수이고 10 미만의 모든 자연수를 나열하면 3, 5, 6 및 9가 된다. 이러한 배수의 합은 23이다. 1000 미만의 3 또는 5의 모든 배수의 합계는 ?
RUBY 소개 The '.reverse' Method.reverse 메소드는 .length 와 같은 방식으로 호출 된다. .length 가 문자열의 길이를 알려주는 대신에 .reverse 는 문자열의 역방향 버전을 출력한다. "Eric".reversewill result in"cirE" 입력 값의 반전은 가장 낮은 값에서 가장 높은 값으로 목록을 정렬하는 경우 유용할 수 있다. '.upcase' & '.downcase'.upcase : 문자열을 대문자 반환.downcase : 문자열을 소문자 반환 puts : 문자열 출력 Single-Line Comments # : 루비의 한 줄 주석 # I'm a full line comment! "Teemo".length # I'm a comment, too! Mul..