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 2869cbc commit 0c193c3Copy full SHA for 0c193c3
2119-a-number-after-a-double-reversal.js
@@ -0,0 +1,9 @@
1
+/**
2
+ * @param {number} num
3
+ * @return {boolean}
4
+ */
5
+var isSameAfterReversals = function(num) {
6
+ if(('' +num).length === 1) return true
7
+ const tmp = (''+num).endsWith('0')
8
+ return !tmp
9
+};
0 commit comments