该文被密码保护。 阅读全文
摘要:
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ... 阅读全文
摘要:
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... 阅读全文
只有注册用户登录后才能阅读该文。 阅读全文
摘要:
除第二章介绍的基本数据类型外,C++ 还定义了一个内容丰富的抽象数据类型标准库。 本章将介绍标准库中的 vector、string 和 bitset 类型。 string 类型支持长度可变的字符串 vector 可用于保存一组指定类型的对象 bitset,提供了一种抽象方法来操作位的... 阅读全文
摘要:
main函数main函数之前会有一个特殊的启动程序,启动例程从内核取得命令行参数和环境变量。进程终止正常终止:从main函数返回调用exit调用_exit或_Exit最后一个线程从启动例程返回最后一个线程调用pthread_exit异常终止:调用abort接到一个信号终止最后一个线程对取消请求作出相... 阅读全文