随笔分类 - LeetCode题解
摘要:题目链接: https://oj.leetcode.com/problems/merge-k-sorted-lists/ 问题: Merge k sorted linked lists and return it as one sorted list. Analyze and describe it
阅读全文
摘要:题目链接: https://oj.leetcode.com/problems/add-two-numbers/ 问题: You are given two linked lists representing two non-negative numbers. The digits are store
阅读全文
摘要:题目链接:https://oj.leetcode.com/problems/palindrome-number/ 问题:Determine whether an integer is a palindrome. Do this without extra space. 针对本题可能存在的疑惑 1)负
阅读全文
摘要:题目链接:https://leetcode.com/problems/plus-one/ Given a non-negative number represented as an array of digits, plus one to the number. The digits are sto
阅读全文
摘要:题目链接:https://oj.leetcode.com/problems/two-sum/ 问题: Given an array of integers, return indices of the two numbers such that they add up to a specific t
阅读全文
摘要:题目链接:https://oj.leetcode.com/problems/valid-palindrome/ 问题: Given a string, determine if it is a palindrome, considering only alphanumeric characters
阅读全文
摘要:题目链接: https://oj.leetcode.com/problems/reverse-words-in-a-string/ 问题: Given an input string, reverse the string word by word. For example, Given s = "
阅读全文
摘要:题目链接: https://oj.leetcode.com/problems/string-to-integer-atoi/ 问题: Implement atoi to convert a string to an integer. Notes: It is intended for this pr
阅读全文
摘要:题目链接:https://leetcode.com/problems/valid-number/ 原题: Validate if a given string is numeric. Some examples: "0" => true " 0.1 " => true "abc" => false
阅读全文

浙公网安备 33010602011771号