摘要:
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu 阅读全文
摘要:
Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell,where "adjacen 阅读全文
摘要:
Given a binary tree, return the tilt of the whole tree.The tilt of a tree node is defined as the absolute difference between the sum of all left subtr 阅读全文
摘要:
Given an array of 2n integers, your task is to group these integers into n pairs of integer,say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of m 阅读全文
摘要:
Given a positive 32-bit integer n, you need to find the smallest 32-bit integer which has exactly the same digits existing inthe integer n and is grea 阅读全文
摘要:
There is a brick wall in front of you. The wall is rectangular and has several rows of bricks.The bricks have the same height but different width. You 阅读全文
摘要:
Given a string, you need to reverse the order of characters in each word within a sentence whilestill preserving whitespace and initial word order.Exa 阅读全文
摘要:
Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined as an inte 阅读全文
摘要:
Given a non-negative integer represented as a non-empty array of digits, plus one to the integer.You may assume the integer do not contain any leading 阅读全文