【Coding】
记录每天coding做题思路心得
PettyKoKo
从0到1
展开
-
Coding笔记——Median of Two Sorted Arrays
package com.kzl.leetcode.problem_1_50; /** * There are two sorted arrays nums1 and nums2 of size m and n respectively. * <p> * Find the median of the two sorted arrays. The overall run tim...原创 2019-04-18 23:54:46 · 179 阅读 · 0 评论 -
Coding笔记——Longest Substring Without Repeating Characters
package com.kzl.leetcode.problem_1_50; /** * Given a string, find the length of the longest substring without repeating characters. * <p> * Example 1: * <p> * Input: "abcabcbb" * O...原创 2019-04-17 23:37:22 · 133 阅读 · 0 评论 -
Coding笔记——Add Two Numbers
package com.kzl.leetcode.problem_1_50; import com.kzl.leetcode.utils.ListNode; /** * You are given two non-empty linked lists representing two non-negative integers. * The digits are stored in re...原创 2019-04-16 23:54:50 · 126 阅读 · 0 评论 -
Coding笔记——TwoSum
package com.kzl.leetcode.problem_1_50; import java.util.Arrays; import java.util.HashMap; /** * Given an array of integers, return indices of the two numbers such that they add up to a specific ta...原创 2019-04-15 22:07:13 · 123 阅读 · 0 评论