본문 바로가기
728x90
[Python] Longest Palindromic Substring - LeetCode 5. Longest Palindromic Substring Longest Palindromic Substring - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Given a string s, return the longest palindromic substring in s. Example 1: Input: s = "babad" Output: "bab" Note: "aba" is also a valid answer. 2: Input: s = "cbbd" Out.. 2021. 9. 23.
[Python] Median of Two Sorted Arrays - LeetCode 4. Median of Two Sorted Arrays Median of Two Sorted Arrays - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 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)). Exa.. 2021. 9. 16.
[Python] Longest Substring Without Repeating Characters - LeetCode 3. Longest Substring Without Repeating Characters Longest Substring Without Repeating Characters - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Given a string s, find the length of the longest substring without repeating characters. Examples 1: Input: s = "abcabcbb" Output: 3 Ex.. 2021. 9. 16.
[Python] Add Two Numbers - LeetCode 2. Add Two Numbers Add Two Numbers - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers and ret.. 2021. 9. 16.
[Python] Two Sum - LeetCode 1. Two Sum Two Sum - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the sam.. 2021. 9. 16.
728x90