随笔分类 - leetcode-easy
记录leetcode的刷题之旅,从easy开始
摘要:题目 Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Examp
阅读全文
摘要:题目 Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if:
阅读全文
摘要:题目 Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Exa
阅读全文
摘要:题目 Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Input: 121 Output:
阅读全文
摘要:题目 Given a 32 bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: 123 Output: 321 Example 3: Input:
阅读全文
摘要:题目 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
阅读全文

浙公网安备 33010602011771号