+ 5

Challenge 3

The second challenge was a bit easy, now let's see a third one. Write a code for testing a square number without using conversions, and any math object operator except sqrt. Do it in any language you please.

27th Jun 2017, 2:56 PM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
11 Answers
27th Jun 2017, 4:13 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 5
ikr allow js pls
27th Jun 2017, 3:11 PM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 5
a = x => Number.isInteger(Math.sqrt(x)) done lol a(49) returns true a(50) returns false
28th Jun 2017, 4:13 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 4
You should allow other languages also 😕
27th Jun 2017, 3:03 PM
Ekansh
+ 4
does that thing not look like a js code to you? maybe you should look into this https://cheeze.club/xeb5
27th Jun 2017, 3:31 PM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 3
@Igor B mb fixed
28th Jun 2017, 4:13 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 2
Okk All languages allowed.
27th Jun 2017, 3:20 PM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
+ 1
@Cheeze I wanted a code...xD.
27th Jun 2017, 3:26 PM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
+ 1
@cheese: You used %. The rules say that math operations other than sqrt are not allowed.
27th Jun 2017, 5:52 PM
Igor B
Igor B - avatar
0
@Cheeze I meant attach an SL code...xD
28th Jun 2017, 2:43 AM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
0
@Igor, I meant Math object...xD
28th Jun 2017, 2:44 AM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar