We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a01bcc commit 1506fb4Copy full SHA for 1506fb4
BaseSeven.dart
@@ -0,0 +1,12 @@
1
+// Leetcode Problem No. 504 : Given an integer num, return a string of its base 7 representation.
2
+// Leetcode Problem Link: https://leetcode.com/problems/base-7/
3
+// Result using Dart language here: Runtime: 485 ms, Memory Usage: 140.5 MB
4
+
5
+// Solution:
6
7
+// toRadixString is part of dart:core library
8
+class Solution {
9
+ String convertToBase7(int num) {
10
+ return num.toRadixString(7);
11
+ }
12
+}
0 commit comments