abstract In Java, abstract class can have without any abstract method. However, if there is an abstract class in a class, the class must be the abstract class. The abstract class is not able to be instantiated but allow to be inherited. Moreover, by creating subclass, reference of derive class can be created. You can have a reference to an abstract class by creating some other class that derives..
문제 설명String형 배열 seoul의 element중 Kim의 위치 x를 찾아, 김서방은 x에 있다는 String을 반환하는 함수, solution을 완성하세요. seoul에 Kim은 오직 한 번만 나타나며 잘못된 값이 입력되는 경우는 없습니다.제한 사항seoul은 길이 1 이상, 1000 이하인 배열입니다.seoul의 원소는 길이 1 이상, 20 이하인 문자열입니다.Kim은 반드시 seoul 안에 포함되어 있습니다.입출력 예seoulreturn[Jane, Kim]김서방은 1에 있다 풀이 12345678910111213class Solution { public String solution(String[] seoul) { String answer = ""; String k = "Kim"; for(int..
문제 설명 단어 s의 가운데 글자를 반환하는 함수, solution을 만들어 보세요. 단어의 길이가 짝수라면 가운데 두글자를 반환하면 됩니다. 재한사항 s는 길이가 1 이상, 100이하인 스트링입니다. 입출력 예 s return abcde c qwer we Solution 1 in Java 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 class Solution { public String solution(String s) { String answer = ""; int position = 0; int length = 0; if (s.length() % 2 == 0){ position = s.length() / 2 - 1; length = 2; }else if(s.length(..
문제 설명문자열 s를 숫자로 변환한 결과를 반환하는 함수, solution을 완성하세요.제한 조건s의 길이는 1 이상 5이하입니다.s의 맨앞에는 부호(+, -)가 올 수 있습니다.s는 부호와 숫자로만 이루어져있습니다.s는 0으로 시작하지 않습니다.입출력 예예를들어 str이 1234이면 1234를 반환하고, -1234이면 -1234를 반환하면 됩니다. str은 부호(+,-)와 숫자로만 구성되어 있고, 잘못된 값이 입력되는 경우는 없습니다. 풀이 1234567class Solution { public int solution(String s) { int answer = 0; answer = Integer.parseInt(s); // Integer.parseInt() convert a String to int ..
문제 설명 문제 길이가 n이고, 수박수박수박수.... 와 같은 패턴을 유지하는 문자열을 리턴하는 함수, solution을 완성하세요. 예를들어 n이 4이면 수박수박 을 리턴하고 3이라면 수박수 를 리턴하면 됩니다. 제한 조건 n은 길이 10,000이하인 자연수입니다. 입출력 n return 3 수박수 4 수박수박 solution in java 1 2 3 4 5 6 7 8 9 class Solution { public String solution(int n) { String answer = ""; for(int i = 0; i
It is all about the rules.in the Library, you are making a call, but in the framework, framework actually calling to your code. Library Library is simply a collection of code and it is also known as a package.It has fewer rules than Framework. Whenever you have the power to call the code whenever you like that is simply a library. For example, let's say the library is your home and framework is ..
- Total
- Today
- Yesterday
- hackerrank
- Javascript Algorithm
- easy algorithm
- 프로그래머스
- algorithm
- equals()
- math.abs
- Object type casting
- spring boot application
- hackerrank javascript
- C++
- Collection Framework
- HashMap
- hackerrank solution
- 알고리즘
- code refactoring
- repeat()
- HackerRank Algorithm
- string class in java
- java
- math.max
- substring()
- ... in Javascript
- javascript
- 프로그래머스 알고리즘
- compareTo()
- hackerrank javascript solution
- easy javascript algorithm
- rest parameter
- 프로그래머스 알고리즘문제
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |