+ 10

code coach different languages

I have exactly the same solution but it works on some languages and the others not why ?

8th Jan 2020, 5:25 PM
ABADA S
ABADA S - avatar
10 Respuestas
+ 6
I have solved many problems in all languages using the same algorithm. But, there are some inconsistancies in language implemention that do affect the algorithms. A few needed minor adjustments to deal with the inconsistancies.
8th Jan 2020, 8:45 PM
John Wells
John Wells - avatar
+ 3
ᎯᏰᎯᎠᎯ Ꮪ , Some days ago there was a question in qa much similar to this. I can't find it as I don't remember title. OP used same logic for programs in both languages but got different result in code coach. reason in case was that both languages were using different algorithm to round numbers. So the output using both languages was not same for all cases.
8th Jan 2020, 5:53 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 3
🇮🇳Omkar🕉 I agree with you but multiplying and reminder should be the same there is no rounding here
8th Jan 2020, 5:56 PM
ABADA S
ABADA S - avatar
+ 3
I am sorry I mean in multiplying there is no rounding also in reminder shouldn't have rounding when I get the reminder on a normal number
8th Jan 2020, 6:02 PM
ABADA S
ABADA S - avatar
+ 2
WhyFry I think reminder operator shouldn't be different
8th Jan 2020, 5:52 PM
ABADA S
ABADA S - avatar
+ 2
HonFu ,exactly 🙂👍
8th Jan 2020, 5:57 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 1
ABADA S, We can choose more and more languages but don't remember the basics in project of the Web site, we are Static web (just HTML sufficient for user) and Dynamic web ( HTML + CSS + Script for the middleman ) , All, plus PHP + SQL + C++, and soon on for Admin and Develop. If we are jumping , we have fews handicaps...
23rd Jan 2020, 1:53 PM
yadcubox
yadcubox - avatar
0
ᎯᏰᎯᎠᎯ Ꮪ "there is no rounding *here*" what are you you referring to as "here". you haven't linked any code bro. and how multiplying and remainder (related with division) are same 😅
8th Jan 2020, 6:00 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar