Skip to content

Commit

Permalink
修改
Browse files Browse the repository at this point in the history
  • Loading branch information
arkingc committed Aug 16, 2018
1 parent 941a2cc commit ef38d30
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 61 deletions.
Binary file added interview/pic/math-23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added interview/pic/math-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added interview/pic/math-25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added interview/pic/math-26.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
147 changes: 86 additions & 61 deletions interview/数学智力题.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
> 内容源自《王道程序员求职宝典》
* [一.智力题](#一智力题)
- [1.水果与标签](#1水果与标签) 🔥
- [2.假币与损失](#2假币与损失)
- [3.黑白帽子](#3黑白帽子) 🔥🔥
- [4.重量不同的球](#4重量不同的球) 🔥🔥
- [5.淘汰赛比赛次数](#5淘汰赛比赛次数)
- [6.猴子分桃](#6猴子分桃) 🔥
- [7.说真话和说假话](#7说真话和说假话)
- [8.说实话的老鼠](#8说实话的老鼠)
- [9.扔鸡蛋](#9扔鸡蛋) 🔥🔥
* [二.数学基础](#二数学基础)
* **一.数学基础**
- **进制及其应用**
- [1.找出有毒的酒](#1找出有毒的酒) 🔥🔥
- [2.状态切换](#2状态切换) 🔥🔥
Expand All @@ -21,146 +11,181 @@
- [1.中奖的概率](#1中奖的概率)
- [2.两个实数和大于1的概率](#2两个实数和大于1的概率)
- [3.打开宝箱的概率](#3打开宝箱的概率)
- [4.随机选取m个查询](#4随机选取m个查询)
- [5.使用rand5实现rand7](#5使用rand5实现rand7)
- [4.随机选取m个查询](#4随机选取m个查询) 🔥
- [5.使用rand5实现rand7](#5使用rand5实现rand7) 🔥
- **排列与组合**
- [1.矩阵中A到B的走法](#1矩阵中a到b的走法) 🔥
- [2.糖果的分法](#2糖果的分法)
- **计算题**
- [1.容斥原理](#1容斥原理) 🔥
* **二.智力题**
- [1.水果与标签](#1水果与标签) 🔥
- [2.假币与损失](#2假币与损失)
- [3.黑白帽子](#3黑白帽子) 🔥🔥
- [4.重量不同的球](#4重量不同的球) 🔥🔥
- [5.淘汰赛比赛次数](#5淘汰赛比赛次数)
- [6.猴子分桃](#6猴子分桃) 🔥
- [7.说真话和说假话](#7说真话和说假话)
- [8.说实话的老鼠](#8说实话的老鼠)
- [9.扔鸡蛋](#9扔鸡蛋) 🔥🔥

<br>
<br>
<br>

# 一.智力题
# 一.数学基础

## 1.水果与标签
## 1.找出有毒的酒

![](pic/math-1.png)
### 1)题目一

<br>
![](pic/math-10.png)

## 2.假币与损失
### 2)题目二

![](pic/math-2.png)
![](pic/math-11.png)

### 3)题目三

![](pic/math-12.png)

<br>

## 3.黑白帽子
## 2.状态切换

![](pic/math-3.png)
### 1)题目一

![](pic/math-13.png)

### 2)题目二

![](pic/math-14.png)

<br>

## 4.重量不同的球
## 3.工人与金条

![](pic/math-4.png)
![](pic/math-15.png)

<br>

## 5.淘汰赛比赛次数
## 4.确定灯泡的开关

![](pic/math-5.png)
![](pic/math-16.png)

<br>

## 6.猴子分桃
## 5.最后剩下的数

![](pic/math-6.png)
![](pic/math-17.png)

<br>

## 7.说真话和说假话
## 1.中奖的概率

![](pic/math-7.png)
![](pic/math-18.png)

<br>

## 8.说实话的老鼠
## 2.两个实数和大于1的概率

![](pic/math-8.png)
![](pic/math-19.png)

<br>

## 9.扔鸡蛋
## 3.打开宝箱的概率

![](pic/math-9.png)
![](pic/math-20.png)

<br>

## 4.随机选取m个查询

![](pic/math-21.png)

<br>

# 二.数学基础
## 5.使用rand5实现rand7

## 1.找出有毒的酒
![](pic/math-22.png)

### 1)题目一
<br>

![](pic/math-10.png)
## 1.矩阵中A到B的走法

### 2)题目二
![](pic/math-23.png)

![](pic/math-11.png)
<br>

### 3)题目三
## 2.糖果的分法

![](pic/math-12.png)
![](pic/math-24.png)

<br>

## 2.状态切换
## 1.容斥原理

### 1)题目一

![](pic/math-13.png)
![](pic/math-25.png)

### 2)题目二

![](pic/math-14.png)
![](pic/math-26.png)

<br>
<br>

## 3.工人与金条
# 二.智力题

![](pic/math-15.png)
## 1.水果与标签

![](pic/math-1.png)

<br>

## 4.确定灯泡的开关
## 2.假币与损失

![](pic/math-16.png)
![](pic/math-2.png)

<br>

## 5.最后剩下的数
## 3.黑白帽子

![](pic/math-17.png)
![](pic/math-3.png)

<br>

## 1.中奖的概率
## 4.重量不同的球

![](pic/math-18.png)
![](pic/math-4.png)

<br>

## 2.两个实数和大于1的概率
## 5.淘汰赛比赛次数

![](pic/math-19.png)
![](pic/math-5.png)

<br>

## 3.打开宝箱的概率
## 6.猴子分桃

![](pic/math-20.png)
![](pic/math-6.png)

<br>

## 4.随机选取m个查询
## 7.说真话和说假话

![](pic/math-21.png)
![](pic/math-7.png)

<br>

## 5.使用rand5实现rand7
## 8.说实话的老鼠

![](pic/math-22.png)
![](pic/math-8.png)

<br>

## 9.扔鸡蛋

<br>
![](pic/math-9.png)

0 comments on commit ef38d30

Please sign in to comment.