课程: Java Algorithms

Introducing CoderPad challenges - Java教程

课程: Java Algorithms

Introducing CoderPad challenges

- [Instructor] This course includes interactive code challenges that appear when you click on the challenge links in the course's table of contents. Each challenge includes instructions and a couple of code editors you can use to create and test your own solution to the challenge. These challenges are hosted by CoderPad. And they appear in the same area of the course page when you watch the course's videos. We recommend using a desktop browser for the best experience. But you can use the LinkedIn Learning mobile app if you prefer. The code challenge has four main areas. Instructions, a console for output, a code editor for your answer, and another code editor where you can see how your code is used. You can use these drag handles to allocate space as you'd like. Let's complete this coding challenge. There are comments in the starting code showing you where to implement your solution. Let's add one. When you click the Test My Code button, you'll see a message indicating whether your code returned a successful results. If your code isn't successful, you can ask for help. Let's change this to return zero. It's not the expected result. Luckily, we can get some hints. The Show Expected Results and Show Hints variables determine whether you see the expected results and any hints. Let's change these to true. In the output, we can now see the expected results and a hint on how to implement the solution. The code editor in the lower right shows how your solution is used. You can change this code to experiment with different test cases. Let's change five to 30. Now 30 is the largest number in the array. And that's our new expected result. When you've finished each code challenge, return to the course and click the next video to see my solution.

内容