문제 설명문자열 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 ..
RestAPI REpresentational State Transfer The most popular types of API is RestAPI. RestAPI makes use of resource-based URL's. In brief, when we request a server for data but not a normal web page, then servlet will give you a state of the object in XML or JSON format. When you return data, data should have structure and that is the reason why it is in XML/JSON format. What the server is sending i..
Servlet user requests a specific file that you don't have then, the server will have a helper application which is your web container(Tomcat). Since HTML is not a programming language, you need to use some programming like PHP, ASP, Ruby or Java. If you use Java. you need something called Servlet.Servlet stands for Server Component. Servlet runs in your Server and the output will be on the clien..
Static page static means no change, action and progress. In Web development, static page gives pre-made pages which are relatively easy to code using HTML. Therefore, when users visit the site, it displays the exact same content. Dynamic page Other types of web page is dynamic web page. Dynamic means constant change and activity. The dynamic web page shows pages which are not pre-built. The page..
- Total
- Today
- Yesterday
- math.max
- rest parameter
- 알고리즘
- hackerrank javascript solution
- equals()
- java
- ... in Javascript
- 프로그래머스 알고리즘
- 프로그래머스
- easy algorithm
- hackerrank solution
- easy javascript algorithm
- Object type casting
- Collection Framework
- 프로그래머스 알고리즘문제
- math.abs
- spring boot application
- HashMap
- HackerRank Algorithm
- hackerrank
- substring()
- code refactoring
- string class in java
- algorithm
- compareTo()
- repeat()
- hackerrank javascript
- Javascript Algorithm
- javascript
- C++
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |