今天要分享的題目是最簡單的題目:Given an array of integers nums and an integer target, return in...
題目:You are given two non-empty linked lists representing two non-negative intege...
題目:Given a string s, find the length of the longest substring without duplicate...
題目:Given two sorted arrays nums1 and nums2 of size m and n respectively, return...
題目:Given a string s, return the longest palindromic substring in s.給定一個字串 s,請找出...
題目:The string "PAYPALISHIRING" is written in a zigzag pattern on a giv...
題目: 解題思路:取末位數:用 pop = x % 10 取出最後一位。 去掉末位:x = x / 10。 拼接到結果:rev = rev * 10 + pop...
題目:Implement the myAtoi(string s) function, which converts a string to a 32-bit...
題目:Given an integer x, return true if x is a palindrome, and false otherwise.給定一...
題目:Given an input string s and a pattern p, implement regular expression matchin...