본문 바로가기 메뉴 바로가기

Studying programming

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Studying programming

검색하기 폼
  • Jimin's Programming (194)
    • Algorithms (54)
    • JavaScript (16)
    • Vue.js (3)
    • Node.js (3)
    • React.js (7)
    • React Native (0)
    • Spring Boot (13)
    • JAVA (58)
    • C++ (17)
    • Programming (19)
    • Computer basics (4)
  • 방명록

전체 글 (194)
abstract & Interface in java

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..

JAVA 2019. 1. 17. 15:29
<프로그래머스 알고리즘문제> 서울에서 김서방 찾기

문제 설명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..

Algorithms 2019. 1. 17. 14:57
<프로그래머스 알고리즘문제> 가운데 글자 가져오기

문제 설명 단어 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(..

Algorithms 2019. 1. 15. 14:02
<프로그래머스 알고리즘문제> Convert String to int

문제 설명문자열 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 ..

Algorithms 2019. 1. 15. 13:57
<프로그래머스 알고리즘문제> 수박수박수?

문제 설명 문제 길이가 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

Algorithms 2019. 1. 15. 13:19
difference between Framework and Library

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 ..

Programming 2019. 1. 11. 04:34
이전 1 ··· 23 24 25 26 27 28 29 ··· 33 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • math.max
  • math.abs
  • HackerRank Algorithm
  • hackerrank solution
  • 프로그래머스
  • compareTo()
  • easy javascript algorithm
  • ... in Javascript
  • java
  • algorithm
  • repeat()
  • spring boot application
  • rest parameter
  • equals()
  • Collection Framework
  • HashMap
  • string class in java
  • Javascript Algorithm
  • hackerrank
  • code refactoring
  • hackerrank javascript
  • 프로그래머스 알고리즘문제
  • easy algorithm
  • javascript
  • 프로그래머스 알고리즘
  • 알고리즘
  • C++
  • substring()
  • Object type casting
  • hackerrank javascript solution
more
«   2025/07   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바