개인공부

개인공부

  • 분류 전체보기 (144)
    • 자바 (106)
      • 알고리즘 (64)
    • 스프링 (5)
    • QGIS (6)
    • HTML,CSS (1)
    • TypeScript (20)
    • JavaScript,Jquery (2)
    • React (2)
    • python (0)
    • 파이썬 코딩테스트 (0)
    • 스프링 다시하기 (1)
    • 스프링 문법 정리 (0)
  • 홈
  • 태그
  • 방명록
RSS 피드
로그인
로그아웃 글쓰기 관리

개인공부

컨텐츠 검색

태그

react

최근글

댓글

공지사항

아카이브

전체 글(144)

  • 스페이스바 눌렀을때 글자가 지워지면

    2023.07.28
  • 컨트롤 제트

    class Solution { public int solution(String s) { int answer = 0; String[] as = s.split(" "); for(int i=0; i

    2023.07.16
  • 이진수 더하기

    class Solution { public String solution(String bin1, String bin2) { String answer = ""; answer=Integer.toBinaryString(Integer.parseInt(bin1,2)+Integer.parseInt(bin2,2)); return answer; } } 일단 bin1과 bin2를 Integer.parseInt를 통해 정수로 만들어서 2진수를 10진수 바꾸어서 bin1과 bin2를 더해준다. result에는 문자열인 2진수로 되어있으니 Integer.toBinaryString을 통해 10진수로 되어있는 answer값을 문자열로 바꾸어주며 10진수를 2진수로 바꿔준다.

    2023.07.16
  • 한 번만 등장한 문자*

    import java.util.Arrays; class Solution { public String solution(String s) { String answer = ""; String[] str = s.split(""); Arrays.sort(str); for(int i=0; i

    2023.07.16
  • 진료 순서 정하기**

    class Solution { public int[] solution(int[] emergency) { int[] answer = new int[emergency.length]; for(int i=0; i

    2023.07.14
  • 가까운 수**

    import java.util.Arrays; class Solution { public int solution(int[] array, int n) { int answer = 0; Arrays.sort(array); for(int i = 1 ; i Math.abs(n-array[i])){ array[0] = array[i]; } } answer = array[0]; return answer; } }

    2023.07.13
이전
1 2 3 4 ··· 24
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바