摘要:
原题Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the dep... 阅读全文
摘要:
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu... 阅读全文
摘要:
个人学习笔记递归是指函数调用自己本身。想知道什么是递归,首先你得知道什么是递归。下面是一个显示当n为不同值时运行时间的小程序#include #include using namespace std;clock_t start = clock(); int f(long int num){ if(... 阅读全文