摘要:
Invert a binary tree. Trivia: This problem was inspired by this "original tweet" by "Max Howell" : Google: 90% of our engineers use the software you w 阅读全文
摘要:
Given a 2D binary matrix filled with 0’s and 1’s, find the largest square containing only 1’s and return its area. For example, given the following ma 阅读全文
摘要:
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr 阅读全文
摘要:
Reverse a singly linked list. 阅读全文
摘要:
Note: This is an extension of "House Robber" . After robbing those houses on that street, the thief has found himself a new place for his thievery so 阅读全文
摘要:
Write an algorithm to determine if a number is “happy”. A happy number is a number defined by the following process: Starting with any positive intege 阅读全文
摘要:
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo 阅读全文