随笔分类 - 算法
摘要:##add two number 题目要求:You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their ...
阅读全文
摘要:## Leet code3####Longest Substring Without Repeating Characters The function twoSum should return indices of the two numbers such that they add up to...
阅读全文
摘要:##Two sum (leetcode)refer:https://oj.leetcode.com/problems/two-sum/##Two SumGiven an array of integers, find two numbers such that they add up to a sp...
阅读全文
摘要:##计算小球轨迹:题目:有一个小球,从100米的高度落地,每次弹起来是原来下落高度的一半,求落地十次小球走的轨迹距离。##采用递归的思想,除了第一次小球落地需要...
阅读全文

浙公网安备 33010602011771号