Skip to content

Commit 3ef68f3

Browse files
committed
readme
1 parent 5ffd11a commit 3ef68f3

File tree

1 file changed

+6
-23
lines changed

1 file changed

+6
-23
lines changed

README.md

+6-23
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,9 @@
11
# `Today Update`
22
(Notes: "♥" Welcome!)
33
## Math
4-
### 263 Ugly Number
5-
* [Github:#263 Ugly Number](/Math/Math.Lib/UglyNumberSln.cs)
6-
* [CSDN:#263 Ugly Number](http://blog.csdn.net/daigualu/article/details/72765438)
7-
```C#
8-
public bool IsUgly(int num)
9-
{
10-
if (num <= 0) return false;
11-
if (num == 1) return true;
12-
while (num >1)
13-
{
14-
if(num%2==0)
15-
num /= 2;
16-
else if (num%3 == 0)
17-
num /= 3;
18-
else if (num%5 == 0)
19-
num /= 5;
20-
else return false;
21-
}
22-
return true;
23-
}
24-
```
25-
--
4+
### 326 Power of Three
5+
* [Github:#326 Power of Three](/Math/Math.Lib/PowerOfThreeSln.cs)
6+
* [CSDN:#326 Power of Three](http://blog.csdn.net/daigualu/article/details/72780560)
267
---
278

289

@@ -219,7 +200,9 @@ Tags are following:
219200
* https://en.wikipedia.org/wiki/Vedic_square
220201
* In Indian mathematics, a Vedic square is a variation on a typical 9 × 9 multiplication table where the entry in each cell is the digital root of the product of the column and row headings i.e. the remainder when the product of the row and column headings is divided by 9 (with remainder 0 represented by 9). Numerous geometric patterns and symmetries can be observed in a Vedic square some of which can be found in traditional Islamic art.
221202
![VedicSquare](/Math/Math.Lib/VedicSquare.png)
222-
203+
### 263 Ugly Number
204+
* [Github:#263 Ugly Number](/Math/Math.Lib/UglyNumberSln.cs)
205+
* [CSDN:#263 Ugly Number](http://blog.csdn.net/daigualu/article/details/72765438)
223206

224207
## Two Pointers
225208
* [#345 Reverse Vowels of a String](http://blog.csdn.net/daigualu/article/details/69257693)

0 commit comments

Comments
 (0)