Question
Determine whether an integer is a palindrome. An integer is a palindro......
8. String to Integer (atoi) 【Medium】
Question
Implement atoi which converts a string to an integer.
The function first discard......
7. Reverse Integer 【Easy】
Question
Given a 32-bit signed integer, reverse digits of an integer.
Example 1:
Input: 123
Ou......
6. ZigZag Conversion 【Medium】
Question
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows ......
5. Longest Palindromic Substring 【Medium】
Question
Given a string s, find the longest palindromic substring in s. You may assume that th......
4. Median of Two Sorted Arrays 【Hard】
Question
Given two sorted arrays nums1 and nums2 of size m and n respectively.
Return the medi......
3. Longest Substring Without Repeating Characters 【Medium】
Question
Given a string, find the length of the longest substring without repeating characters......
2. Add Two Numbers 【Medium】
Question
You are given two non-empty linked lists representing two non-negative integers. The ......
1. Two Sum【Easy】
Question
Given an array of integers nums and and integer target, return the indices of the two......