![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
Reset_ytb
不想去BAT的程序猿不是好的程序猿
展开
-
LeetCode(Medium)-647、Palindromic Substrings
647、Palindromic SubstringsGiven a string, your task is to count how many palindromic substrings in this string.The substrings with different start indexes or end indexes are counted as different sub...原创 2018-10-01 21:13:45 · 176 阅读 · 0 评论 -
LeetCode(easy)-888. Fair Candy Swap
888. Fair Candy SwapAlice and Bob have candy bars of different sizes: A[i] is the size of the i-th bar of candy that Alice has, and B[j] is the size of the j-th bar of candy that Bob has.Since they ...原创 2018-10-09 18:58:48 · 152 阅读 · 0 评论 -
LeetCode(easy)-1、Two Sum
1、Two SumGiven 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 would have exactly one solution, and you may not use ...原创 2018-09-29 17:24:07 · 165 阅读 · 0 评论 -
LeetCode(easy)-892、Surface Area of 3D Shapes
892、Surface Area of 3D ShapesOn a N * N grid, we place some 1 * 1 * 1 cubes.Each value v = grid[i][j] represents a tower of v cubes placed on top of grid cell (i, j).Return the total surface area o...原创 2018-10-07 21:50:20 · 205 阅读 · 0 评论 -
LeetCode(easy)-893、Groups of Special-Equivalent Strings
893、Groups of Special-Equivalent StringsYou are given an array A of strings.Two strings S and T are special-equivalent if after any number of moves, S == T.A move consists of choosing two indices i...原创 2018-10-06 20:52:41 · 132 阅读 · 0 评论 -
LeetCode(easy)-876.Middle of the Linked List
876.Middle of the Linked ListGiven a non-empty, singly linked list with head node head, return a middle node of linked list.If there are two middle nodes, return the second middle node.Example 1:I...原创 2018-10-13 10:13:47 · 194 阅读 · 0 评论 -
LeetCode(easy)-883.Projection Area of 3D Shapes
883.Projection Area of 3D ShapesOn a N * N grid, we place some 1 * 1 * 1 cubes that are axis-aligned with the x, y, and z axes.Each value v = grid[i][j] represents a tower of v cubes placed on top o...原创 2018-10-12 18:01:55 · 229 阅读 · 0 评论 -
LeetCode(easy)-896、Monotonic Array
896、Monotonic ArrayAn array is monotonic if it is either monotone increasing or monotone decreasing.An array A is monotone increasing if for all i <= j, A[i] <= A[j]. An array A is monotone d...原创 2018-10-04 21:28:27 · 160 阅读 · 0 评论 -
LeetCode(easy)-905、Sort Array By Parity
905、Sort Array By ParityGiven an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A.You may return any answer array tha...原创 2018-10-04 15:50:56 · 115 阅读 · 0 评论 -
LeetCode(easy)-884. Uncommon Words from Two Sentences
884. Uncommon Words from Two SentencesWe are given two sentences A and B. (A sentence is a string of space separated words. Each word consists only of lowercase letters.)A word is uncommon if it a...原创 2018-10-10 11:52:09 · 192 阅读 · 0 评论