File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 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 166166501|[ Find Mode in Binary Search Tree] ( ./0501-find-mode-in-binary-search-tree.js ) |Easy|
167167502|[ IPO] ( ./0502-ipo.js ) |Hard|
168168503|[ Next Greater Element II] ( ./0503-next-greater-element-ii.js ) |Medium|
169+ 504|[ Base 7] ( ./0504-base-7.js ) |Easy|
169170506|[ Relative Ranks] ( ./0506-relative-ranks.js ) |Easy|
170171509|[ Fibonacci Number] ( ./0509-fibonacci-number.js ) |Easy|
171172520|[ Detect Capital] ( ./0520-detect-capital.js ) |Easy|
You can’t perform that action at this time.
0 commit comments