- 博客(20)
- 资源 (1)
- 收藏
- 关注
原创 lnk1181无法打开输入文件_cuda.obj问题
vs更新后重新生成解决方案一直出现这问题"lnk1181 无法打开文件xxx_cuda.obj"检查发现是vs更新导致cl.exe路径发生变化,更改后bug解决。
2020-04-04 23:30:44 1706 2
原创 Min Cost Climbing Stairs
Min Cost Climbing Stairs--LeetCode(原题链接:点击打开链接)On a staircase, the i-th step has some non-negative costcost[i] assigned (0 indexed).Once you pay the cost, you can either climb one or two steps
2018-01-07 19:39:48 283
原创 STINGY SAT
8.3 STINGY SAT is the following problem: given a set of clauses(each a disjunction of literals) and an integer k, find a satifying assignment in which at most k variables are true, if such an assignme
2017-12-31 19:37:29 621
原创 Letter Combinations of a Phone Number--LeetCode
Letter Combinations of a Phone Number(原文链接:点击打开链接)Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on th
2017-12-24 20:35:19 181
原创 3Sum Closest -- LeetCode
3Sum Closest(原题链接:点击打开链接)Given an array S of n integers, find three integers inS such that the sum is closest to a given number, target. Return the sum of the three integers. You may assum
2017-12-17 22:43:13 314
原创 3Sum--LeetCode
3Sum(原题链接:点击打开链接)Given an array S of n integers, are there elementsa, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note: The sol
2017-12-11 18:06:51 179
原创 Longest Common Prefix--LeetCode
Longest Common Prefix(原题链接:点击打开链接)Write a function to find the longest common prefix string amongst an array of strings.Solution:class Solution {public: string longestCommonPrefix(vector&
2017-12-11 17:01:28 227
原创 Roman to Integer
Roman to Integer Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.Solution:一种很粗暴的解法,罗列所有可能出现的情况:class Solution {public: int
2017-11-26 19:07:05 162
原创 Integer to Roman--LeetCode
Integer to Roman(原题链接:点击打开链接)Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999.Solution:class Solution {public: string i
2017-11-19 18:29:02 179
原创 Container With Most Water--LeetCode
Container With Most Water(原题链接:点击打开链接)Given n non-negative integers a1,a2, ..., an, where each represents a point at coordinate (i,ai). n vertical lines are drawn such that the two endpoints
2017-11-11 16:24:05 242
原创 Regular Expression Matching--LeetCode
Regular Expression Matching(原题链接:点击打开链接)Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding element
2017-11-11 16:06:32 221
原创 String to Integer (atoi)--LeetCode
String to Integer (atoi)(原题链接:点击打开链接)Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and as
2017-10-29 14:02:16 305
原创 Palindrome Number--LeetCode
Palindrome Number(原题链接:点击打开链接)Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (ie, -1)
2017-10-22 15:53:16 207
原创 ZigZag Conversion--LeetCode
ZigZag Conversion(原题链接:点击打开链接)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 font for better legib
2017-10-15 16:58:27 240
原创 Longest Palindromic Substring--LeetCode
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.Example: Input: "babad"Output
2017-10-15 15:44:28 178
原创 Median of Two Sorted Arrays
Median of Two Sorted ArraysThere are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n
2017-10-08 16:07:19 267
原创 Reverse Integer--LeetCode
Reverse Integer(原题链接:点击打开链接)Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321 click to show spoilers.Have you thought about this?Here are some goo
2017-10-01 21:02:16 215
原创 Longest Substring Without Repeating Characters--LeetCode
Longest Substring Without Repeating Characters(原题链接:点击打开链接)Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "abc
2017-09-24 15:42:40 229
原创 Add Two Numbers--LeetCode
Add Two Numbers(原题链接:点击打开链接)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
2017-09-17 19:53:06 234
原创 Two Sum--LeetCode
Two Sum(原题链接:点击打开链接)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
2017-09-10 22:38:19 303
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人