摘要:
原题 Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 click to show spoilers. Have you thought about this? Her 阅读全文
摘要:
原题 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 阅读全文
摘要:
原题 Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: begin to 阅读全文
摘要:
原题 Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. For example, given n = 阅读全文
摘要:
原题 You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you 阅读全文
摘要:
原题 Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the h 阅读全文
摘要:
原题 A sequence of numbers is called a wiggle sequence if the differences between successive numbers strictly alternate between positive and negative. T 阅读全文