개발자겨려

  • 홈
  • 태그
  • 방명록

Algorithm🧠/LeetCode 2

[LeetCode] Palindrome (회문)

문자열일 경우🧠 private static boolean isPalindromeTowPointer (String str) { // 양쪽으로 비교 str = str.toLowerCase().replaceAll("[^a-zA-Z0-9]]",""); int left = 0; int right = str.length()-1; while(left= end) { return true; } if(str.charAt(start) != str.charAt(end)) { return false; } return isPalindromeRecursion(str, start..

Algorithm🧠/LeetCode 2025.05.02

[LeetCode] TwoSum

문제 설명:정수로 이루어진 배열 nums와 하나의 정수 target이 주어졌을 때,배열 안의 두 숫자를 더해서 target이 되는 두 숫자의 인덱스를 찾아서 반환하세요.각 입력에는 딱 하나의 정답만 존재한다고 가정할 수 있습니다.같은 요소를 두 번 사용할 수는 없습니다.정답은 어떤 순서로든 반환해도 됩니다. 시간복잡도: O(n²) (가장 비효율적이다) public static int[] twoSum(int[] nums, int target) { int[] result = new int[2]; for (int i = 0; i 주어진 nums의 정렬이 안된경우 HashMap 사용 시간복잡도: O(n) public static int[] twoSum(int[] nums,..

Algorithm🧠/LeetCode 2025.04.21
이전
1
다음
더보기
프로필사진

개발자겨려

개인 공부 블로그

  • 분류 전체보기
    • Algorithm🧠
      • Programmers
      • LeetCode
      • BaekJoon
    • Containerization
      • Docker🐳
    • Framework
      • Spring🌱
    • General
      • Java☕️
      • JavaScript
      • JPA
      • Git🐙
      • jQuery
      • Servlet과 JSP
      • React⚛️
    • Project
      • profile-service
      • library
    • DataBase🛢
      • query🔍
      • LeetCode 문제 풀이
      • H2

Tag

Servlet #JSP, Spring #Springboot #스프링부트 #Java, java #, RequiredArgsConstructor, tomcat, programmers, Spring, baekjoon #algorithm #java, @RequiredArgsConstructor, git #sourcetree #적합한 작업중인 복사본 경로가 아닙니다, Algorithm, Spring #Springboot #스프링부트 #java.lang.IllegalArgumentException: Name for argument of type [java.lang.String] not specified,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/08   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

  • 알짜배기 프로그래머

티스토리툴바