Given a non-negative integer num, repeatedly add all its digits until the result has on...
Given a non-negative integer num, repeatedly add all its digits until the result has on...
Implement atoi to convert a string to an integer.Hint: Carefully consider all possible ...
Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -3...
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows li...
Given a string s, find the longest palindromic substring in s. You may assume that the ...
There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the medi...
Given a string, find the length of the longest substring without repeating characters. ...
You are given two non-empty linked lists representing two non-negative integers. The di...
Given an array of integers, return indices of the two numbers such that they add up to ...