File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * 504. Base 7
3
+ * https://leetcode.com/problems/base-7/
4
+ * Difficulty: Easy
5
+ *
6
+ * Given an integer num, return a string of its base 7 representation.
7
+ */
8
+
9
+ /**
10
+ * @param {number } num
11
+ * @return {string }
12
+ */
13
+ var convertToBase7 = function ( num ) {
14
+ return num . toString ( 7 ) ;
15
+ } ;
Original file line number Diff line number Diff line change 166
166
501|[ Find Mode in Binary Search Tree] ( ./0501-find-mode-in-binary-search-tree.js ) |Easy|
167
167
502|[ IPO] ( ./0502-ipo.js ) |Hard|
168
168
503|[ Next Greater Element II] ( ./0503-next-greater-element-ii.js ) |Medium|
169
+ 504|[ Base 7] ( ./0504-base-7.js ) |Easy|
169
170
506|[ Relative Ranks] ( ./0506-relative-ranks.js ) |Easy|
170
171
509|[ Fibonacci Number] ( ./0509-fibonacci-number.js ) |Easy|
171
172
520|[ Detect Capital] ( ./0520-detect-capital.js ) |Easy|
You can’t perform that action at this time.
0 commit comments