Eric Jin

Every failure is leading towards success

ARTS-WEEK 4

some curl

Algorithm LeetCode 第26题,简单。 最近一周没有太多时间写,还是自己的时间规划的不够好。要谨记于心。 Description Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length. Do …...

ARTS-WEEK 3

start a blog

Algorithm Leetcode 第20题,简单。 决定先按照难易程度开始写leetcode,尽量能够每天或者两天写一道题目。一周记录一道题目到ARTS上面来。 Given a string containing just the characters '(', ')', '{', '}', '[' and …...

ARTS-WEEK 2

Algorithm LeeCode 的第三题,中等难度。 Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the length is …...

ARTS-WEEK 1

Algorithm LeetCode 的第一题,比较简单。就是给一个数组,一个目标结果,返回数组中两个相加和为目标数的索引。 Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input …...