
算法
清澈见底-66
此人很懒
展开
-
3Sum Closest 三个数的和最接近某个值
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exactly原创 2017-09-12 11:17:36 · 333 阅读 · 0 评论 -
单链表逆序
// ConsoleApplication6.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include "pch.h" #include <iostream> typedef struct Node { Node *next=NULL; int value; }; int main() { int a = 1...原创 2019-05-17 20:01:19 · 145 阅读 · 0 评论