8000 fix typo · clear-wing/leetcode@baafcdc · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit baafcdc

Browse files
committed
fix typo
1 parent 1b92081 commit baafcdc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

C++/chapTrick.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
\chapter{编程技巧}
22

3-
在判断两个浮点数a和b是否相等时,不要用\fn{a==b},应该判断二者之差的绝对值\fn{fabs(a-b)}是否小于某个阀值,例如\fn{1e-9}。
3+
在判断两个浮点数a和b是否相等时,不要用\fn{a==b},应该判断二者之差的绝对值\fn{fabs(a-b)}是否小于某个阈值,例如\fn{1e-9}。
44

55
判断一个整数是否是为奇数,用\fn{x \% 2 != 0},不要用\fn{x \% 2 == 1},因为x可能是负数。
66

@@ -25,4 +25,4 @@ \subsubsection{vector和string优先于动态分配的数组}
2525
vector<vector<int> > ary(row_num, vector<int>(col_num, 0));
2626
\end{Code}
2727

28-
\subsubsection{使用reserve来避免不必要的重新分配}
28+
\subsubsection{使用reserve来避免不必要的重新分配}

C++/leetcode-cpp.pdf

-33 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)
0