굉장히 개인적인 저장소

굉장히 개인적인 저장소

  • 분류 전체보기 (18)
    • 문제해결 (1)
    • Program (1)
      • Java (1)
      • JavaScript (0)
      • Thymeleaf (0)
    • OS (1)
      • Linux (1)
    • 알고리즘 (15)
      • LeetCode (15)
    • 커리어 (0)
    • 토이 프로젝트 (0)
      • Project A (0)
    로그인
    로그아웃 글쓰기 관리

    굉장히 개인적인 저장소

    컨텐츠 검색

    태그

    Cors 내일배움카드 LeetCode 프로그래밍 기초 java 패스트캠퍼스 K-디지털크레딧 #프로그래밍 첫걸음 시작하기 Linux JavaScript Proxy 바이트디그리 AJAX

    최근글

    댓글

    공지사항

    아카이브

    전체 글(18)

    • [LeetCode] 8. String to Integer (atoi) (Java)

      Description Implement the myAtoi(string s) function, which converts a string to a 32-bit signed integer (similar to C/C++'s atoi function). The algorithm for myAtoi(string s) is as follows: Read in and ignore any leading whitespace. Check if the next character (if not already at the end of the string) is '-' or '+'. Read this character in if it is either. This determines if the final result is n..

      2023.01.03
    • [LeetCode] 7. Reverse Integer (Java)

      Description Given a signed 32-bit integer x, return x with its digits reversed. If reversing x causes the value to go outside the signed 32-bit integer range [-231, 231 - 1], then return 0. Assume the environment does not allow you to store 64-bit integers (signed or unsigned). 주어진 수의 앞 뒤 순서를 바꾼다. Example 1: Input: x = 123 Output: 321 Example 2: Input: x = -123 Output: -321 Example 3: Input: x =..

      2023.01.02
    • [LeetCode] 6. Zigzag Conversion (Java)

      Description The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) P A H N A P L S I I G Y I R And then read line by line: "PAHNAPLSIIGYIR" Write the code that will take a string and make this conversion given a number of rows: string convert(string s, int numRows); 주어진 숫자의 행으로 이..

      2023.01.02
    • [LeetCode] 5. Longest Palindromic Substring (Java)

      Description Given a string s, return the longest palindromic substring in s. string s에서 가장 긴 거꾸로 읽어도 같은 substring을 구하라. Example 1: Input: s = "babad" Output: "bab" Explanation: "aba" is also a valid answer. Example 2: Input: s = "cbbd" Output: "bb" Constraints: 1

      2023.01.02
    • [LeetCode] 4. Median of Two Sorted Arrays (Java) - O(log (m+n))

      Solution class Solution { public double findMedianSortedArrays(int[] nums1, int[] nums2) { int index1 = 0, index2 = 0; int answer1 = 0, answer2 = 0; for(int i=0;i

      2023.01.02
    • [LeetCode] 4. Median of Two Sorted Arrays (Java)

      Description Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). 주어진 두 개의 배열의 중앙값(크기 순서에서 가장 가운데의 값)을 구하라 Example 1: Input: nums1 = [1,3], nums2 = [2] Output: 2.00000 Explanation: merged array = [1,2,3] and median is 2. Example 2: Input: nums1 = [1,2], nums2 = [3,4] Output: 2.5000..

      2022.12.30
    이전
    1 2 3
    다음
    © 2018 TISTORY. All rights reserved.

    티스토리툴바