ARTS

Every failure is leading towards success

Article in tag: ARTS

ARTS WEEK 9

Algorithm Description Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the three integers. You may assume …...

ARTS WEEK 8

simplest and powerful Productivity Technique & share for docker compose

Algorithm Description Given an array with n integers, your task is to check if it could become non-decreasing by modifying at most 1 element. We define an array is non-decreasing if array[i] <= …...

ARTS-WEEK 7

Algorithm Description Given a 2D integer matrix M representing the gray scale of an image, you need to design a smoother to make the gray scale of each cell becomes the average gray scale (rounding …...

ARTS-WEEK 6

enum singleton

Algorithm Description Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole array will be sorted in ascending order, …...

ARTS-WEEK 5

something about kafka

最近算法题倒是一天有写一道,不过总是无法抓住很好的review 和tip 来写,所以感觉写ARTS的时间总是耽搁又耽搁,比一起的间隔时间也长了好几天。 Algorithm LeetCode Count and Say,简单。 这题算是比较印象深刻的一题,最开始这一题的题目都没有看清楚,不知道这是什么意思。后面才明白,是后一个数去say 前一个数,得到后一个数之后继续。这样其实就可以算是一种递归了。 …...

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 …...