- Leap
My example
- Example 1- He had more conditionals in his code, could condense it.
- Example 2- Nice and condensed code. Could set the boolean to a variable and return it.
- Example 3- He broke things down into functions which was nice to see.
- Example 4- Similar to example 2, nice and condensed.
- Example 5- Had more conditionals he/she could have avoided.
- Hamming
My example
- Example 1- Similar to my own, could avoid some more conditionals.
- Example 2- Similar to mine, he made an extra function for the invalid input error
- Example 3- He made a separate function to find the difference which was nice to see.
- Example 4- Put the strings into separate arrays which was not necessary.
- Example 5- Used some Math methods which I hadn't seen in other solutions.
- RNA Transciption
My example
- Example 1- This is July's. I revised my solution based on her comment (use an object to change the letter value). After the revision, her and I have very similar solutions. She crushed it!
- Example 2- This solution does not loop through the nucleotides, which was cool to see.
- Example 3- This is similar to mine, he does have some unnecessary conditionals however.
- Example 4- This is similar to my first iteration with some unnecessary conditional branches.
- Example 5- Threw an error, so was convering his/her bases. Could have built on a string instead of forming a new array and having to join it at the end.