it is not an issue if you don't know why your code does not work. post instead as a question.
do not show code or discuss methods for solving kata without the spoiler flag, otherwise anyone can see your code. (I have addeed the flag to your comment)
your solution basically works, just take out everything else after (no need for main)
First, I thought it was an array, and I thought I needed to make another array and pass the result of the two equations through a for loop in the new array, but I found it always returned 1.
Then I searched and found that std::pair is a class template in C++ that provides a way to store two heterogeneous objects as a single unit. I had to watch a 21-minute mathematical video to learn about the equation: reflection with respect to the origin point.
For me, it is 10/10 for all the knowledge you have to have to solve it.
Okiee. Thanks for the warning i didnt know that.
issue
if you don't know why your code does not work. post instead as aquestion
.main
)This comment is hidden because it contains spoiler information about the solution
Approved
great stuff!
Enabled in this fork
love!
First, I thought it was an array, and I thought I needed to make another array and pass the result of the two equations through a for loop in the new array, but I found it always returned 1.
Then I searched and found that std::pair is a class template in C++ that provides a way to store two heterogeneous objects as a single unit. I had to watch a 21-minute mathematical video to learn about the equation: reflection with respect to the origin point.
For me, it is 10/10 for all the knowledge you have to have to solve it.
Lua translation !
difficult to understand for English users too haha
approved
Rust translate
This might shed you some light
Approved
Loading more items...