![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
清风恋歌
https://github.com/damonZth
展开
-
500. Keyboard Row
Given a List of words, return the words that can be typed using letters of alphabet on only one row’s of American keyboard like the image below. Example 1: Input: [“Hello”, “Alaska”, “Dad”, “Peace”]原创 2017-05-26 00:02:29 · 213 阅读 · 0 评论 -
371. Sum of Two Integers
Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -.Example: Given a = 1 and b = 2, return 3.不使用“+”、“-”号进行加法运算。 思路:在比特位上模拟进制运算,1和1进位1,1和0(0和1) 位运算的基本知识:原创 2017-06-04 19:22:36 · 263 阅读 · 0 评论 -
5. Longest Palindromic Substring
题目: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring.题意: 给定一个字符串S,找到给定S字符串原创 2017-06-13 20:35:54 · 407 阅读 · 0 评论 -
求数组的子数组之和的最大值
题目要求:一个有N个整数元素的一维数组(A[0],A[1],···,A[n-2]、A[n-1]),这个数组当然有很多子数组,那么子数组中和最大值是多少呢?原创 2018-04-19 09:22:07 · 252 阅读 · 0 评论