摘要: 题目内容 Write a function that takes an unsigned integer and return the number of '1' bits it has (also known as the Hamming weight). Example: 分析过程 题目归类: 阅读全文
posted @ 2020-02-12 13:12 clnsx 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 题目内容 Reverse bits of a given 32 bits unsigned integer. Example: 分析过程 题目归类: 2进制 题目分析: 对于2进制需要了解补码反码左移右移逻辑右移和算术右移等操作。 todo 各种码分析 边界分析: 空值分析 循环边界分析 需要了解到 阅读全文
posted @ 2020-02-12 12:57 clnsx 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 题目内容 The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed 阅读全文
posted @ 2020-02-11 13:25 clnsx 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 题目内容 Given a string s, find the longest palindromic subsequence's length in s. You may assume that the maximum length of s is 1000. Example: 分析过程 题目归类 阅读全文
posted @ 2020-02-09 17:00 clnsx 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 题目内容 Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example: 分析过程 题目归类: array,dp 阅读全文
posted @ 2020-02-09 12:32 clnsx 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 题目内容 Given an array A of positive integers, call a (contiguous, not necessarily distinct) subarray of A good if the number of different integers in th 阅读全文
posted @ 2020-02-07 15:58 clnsx 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 题目内容 Given a string, find the length of the longest substring without repeating characters. Example: 分析过程 题目归类: array,遍历,dp 题目分析: 找到连续字串,输出最长的没有重复字母的连 阅读全文
posted @ 2020-02-07 12:28 clnsx 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 题目内容 Given two non negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. Example: 阅读全文
posted @ 2020-02-03 22:00 clnsx 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 题目内容 You are given two non empty linked lists representing two non negative integers. The most significant digit comes first and each of their nodes c 阅读全文
posted @ 2020-02-02 14:43 clnsx 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 题目内容 You are given two non empty linked lists representing two non negative integers. The digits are stored in reverse order and each of their nodes c 阅读全文
posted @ 2020-02-01 16:45 clnsx 阅读(79) 评论(0) 推荐(0) 编辑