Welcome to Code Review! I'm afraid this question does not match what this site is about. Code Review is about improving the cleanliness of existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! source
So when we say "Code Review is about improving the cleanliness of existing, working code", reviewers:
- clean the code
- simplify the code
- Change ugly variable names
- make the code more beautiful
- Provide best practices particular to the language
Does changing code logic count? For example:
Your code is too slow, perhaps you can use a better algorithm for better performance.
//code with better performance
I'm curious because I didn't see that in answers I read. I didn't read them all, maybe some answers do. But is it on topic here?