study/java/src/com/thinker/bishi/offer/README.md

24 lines
1.2 KiB
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 剑指offer面试题目
## 简述
**梅花香自苦寒来,宝剑锋从磨砺出。**
## 面试题3
### 题目
在一个二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,
输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。<br>
**实现方式:** [java实现](https://github.com/lzh984294471/job/tree/master/java/com/thinker/offer/Offer_3.java)
## 面试题10
### 题目
请实现一个函数输入一个整数输出给数在二进制表示中1的个数。例如把9表示成二进制是1001有2位是1。因此
如果输入9该函数输出2。<br>
**实现方式:** [java实现](https://github.com/lzh984294471/job/tree/master/java/com/thinker/offer/Offer_10.java)
## 面试题11
### 题目
实现函数double power(int expo,int base)求base的expo次方不得使用库函数同时不需要考虑大数的问题。<br>
**实现方式:** [java](https://github.com/lzh984294471/job/tree/master/java/com/thinker/offer/Offer_11.java)
和[c语言实现](https://github.com/lzh984294471/job/tree/master/c/sources/offer/offer11.c)