+ 10
code coach different languages
I have exactly the same solution but it works on some languages and the others not why ?
10 Réponses
+ 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.
+ 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.
+ 3
Was it this, 🇮🇳Omkar🕉?
https://www.sololearn.com/discuss/2104980/?ref=app
+ 3
🇮🇳Omkar🕉
I agree with you but multiplying and reminder should be the same there is no rounding here
+ 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
+ 2
WhyFry
I think reminder operator shouldn't be different
+ 2
HonFu ,exactly 🙂👍
+ 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...
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 😅