Skip to content

Commit fac2c0d

Browse files
committed
优化“给3个布尔变量,当其中有2个或者2个以上为true才返回true"
1 parent fdee481 commit fac2c0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contents/Check-if-at-least-two-out-of-three-booleans-are-true.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
##给3个布尔变量,当其中有2个或者2个以上为true才返回true
2-
===
2+
33
###问题
44
给3个boolean变量,a,b,c,当其中有2个或2个以上为true时才返回true?
55
* 最笨的方法:

0 commit comments

Comments
 (0)