File tree 2 files changed +2
-2
lines changed
src/main/java/com/fishercoder/solutions
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -398,7 +398,7 @@ Your ideas/fixes/algorithms are more than welcome!
398
398
| 179| [ Largest Number] ( https://leetcode.com/problems/largest-number/ ) | [ Queue] ( ../master/src/main/java/com/fishercoder/solutions/BSTIterator_using_q.java ) [ Stack] ( ../../blmaster/MEDIUM/src/medium/LargestNumber.java ) | O(?) | O(?) | Medium|
399
399
|174|[ Dungeon Game] ( https://leetcode.com/problems/dungeon-game/ ) |[ Queue] ( ../master/src/main/java/com/fishercoder/solutions/BSTIterator_using_q.java ) [ Stack] ( ../../blmaster/MEDIUM/src/medium/_174.java ) | O(m* n) |O(m* n) | Hard| DP
400
400
|173|[ Binary Search Tree Iterator] ( https://leetcode.com/problems/binary-search-tree-iterator/ ) |[ Queue] ( ../master/src/main/java/com/fishercoder/solutions/_173_using_q.java ) [ Stack] ( ../../blmaster/MEDIUM/src/medium/_173_using_stack.java ) | O(1) |O(h) | Medium| Stack, Design
401
- |172|[ Factorial Trailing Zeroes] ( https://leetcode.com/problems/factorial-trailing-zeroes/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/FactorialTrailingZeroes .java ) | O(logn)|O(1)| Easy
401
+ |172|[ Factorial Trailing Zeroes] ( https://leetcode.com/problems/factorial-trailing-zeroes/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_172 .java ) | O(logn)|O(1)| Easy
402
402
|171|[ Excel Sheet Column Number] ( https://leetcode.com/problems/excel-sheet-column-number/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_171.java ) | O(n)|O(1)| Easy
403
403
|170|[ Two Sum III - Data structure design] ( https://leetcode.com/problems/two-sum-iii-data-structure-design/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_170.java ) | O(n)|O(n)| Easy
404
404
| 169| [ Majority Element] ( https://leetcode.com/problems/majority-element/ ) | [ Solution] ( ../master/src/main/java/com/fishercoder/solutions/MajorityElement.java ) | O(n)| O(1) | Easy|
Original file line number Diff line number Diff line change 2
2
/**Given an integer n, return the number of trailing zeroes in n!.
3
3
4
4
Note: Your solution should be in logarithmic time complexity.*/
5
- public class FactorialTrailingZeroes {
5
+ public class _172 {
6
6
7
7
public int trailingZeroes (int n ) {
8
8
int result = 0 ;
You can’t perform that action at this time.
0 commit comments