logo头像

不忘初心,奋力前行

rotate image

rotate image题目描述You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Fol...

unique paths

unique path题目描述A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below).The ro...

unique binary search tree

unique binary search trees题目描述Given n, how many structurally unique BST’s (binary search trees) that store values 1…n...

same tree

Same Tree题目描述Given two binary trees, write a function to check if they are equal or not.Two binary trees are consider...

roman to integer

Roman to Integer题目描述Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1...

balanced binary tree

题目描述Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is define...