- 博客(8)
- 收藏
- 关注
原创 Longest Substring Without Repeating Characters C语言
Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "abc", which the length is 3.Given "bbbbb", the answer is "b", with the l...
2018-04-29 18:45:54
233
原创 two sum add C语言
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 would have exactly one solution, and you may not use the same el...
2018-04-29 16:43:03
302
原创 Roman to Integer C语言
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.Symbol ValueI 1V 5X 10L 50C 100D 5...
2018-04-29 16:40:26
364
原创 Palindrome Number C语言
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.Example 1:Input: 121Output: trueExample 2:Input: -121Output: falseExplanation: F...
2018-04-29 16:39:11
309
原创 String to Integer (atoi) C语言
Implement atoi which converts a string to an integer.The function first discards as many whitespace characters as necessary until the first non-whitespace character is found. Then, starting from this ...
2018-04-29 16:37:58
356
原创 Reverse Integer C语言
Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Example 3:Input: 120Output: 21Note:Assume we are dealing with an envir...
2018-04-29 16:36:23
192
原创 add two numbers C语言
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 contain a single digit. Add the two numbers and return i...
2018-04-29 16:35:25
339
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人