- 博客(8)
- 资源 (6)
- 收藏
- 关注
原创 理解C++中的左值和右值
理解C++中的左值和右值 Attention:this blog is a translation of https://www.internalpointers.com/post/understanding-meaning-lvalues-and-rvalues-c ,which is posted by @internalpoiners. 一、前言 一直以来,我都对C++中左值(lvalue)...
2019-07-30 12:48:56 438
转载 [LeetCode63] Valid Number 验证数字
Validate if a given string can be interpreted as a decimal number. Some examples: “0” => true " 0.1 " => true “abc” => false “1 a” => false “2e10” => true " -90e3 " => true " 1e" =...
2019-07-19 14:13:08 154
原创 LeetCode] 189. Rotate Array 旋转数组
Given an array, rotate the array to the right by k steps, where k is non-negative. Example 1: Input: [1,2,3,4,5,6,7] and k = 3 Output: [5,6,7,1,2,3,4] Explanation: rotate 1 steps to the right: [7,1,2,...
2019-07-17 14:41:49 159
原创 C++函数模板详解
模板(Template)指C++程序设计设计语言中采用类型作为参数的程序设计,支持通用程序设计。C++ 的标准库提供许多有用的函数大多结合了模板的观念,如STL以及IO Stream。模板是C++支持参数化多态的工具,使用模板可以使用户为类或者函数声明一种一般模式,使得类中的某些数据成员或者成员函数的参数、返回值取得任意类型。 模板是一种对类型进行参数化的工具; 通常有两种形式:函数模板...
2019-07-17 13:21:08 639
原创 [LeetCode 19] Remove Nth Node From End of List 移除链表倒数第N个节点
Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, th...
2019-07-11 15:01:50 102
原创 [LeetCode] Add Two Numbers 两个数字相加
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return i...
2019-07-11 13:47:22 94
原创 [LeetCode] 1. Two Sum 两数之和
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not use the same e...
2019-07-11 13:46:21 73
原创 1.1 Unique Characters of a String 字符串中不同的字符
1.1 Implement an algorithm to determine if a string has all unique characters. What if you cannot use additional data structure? 这道题让我们判断一个字符串中是否有重复的字符,要求不用特殊的数据结构,这里应该是指哈希表之类的不让用。像普通的整型数组应该还是能用的,这道题的...
2019-07-09 16:28:58 205
03.事务隔离:为什么你改了我还看不见?.pdf
2020-03-17
02.日志系统:一条SQL更新语句是如何执行的?.pdf
2020-03-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人