t2a19-leet-nolan.html



  • Ask ChatGPT for a beginner friendly javascript Leet code question.

  • Record the question on this webpage.

  • Write your code to solve the problem within pre tags.

  • Ask ChatGPT to make an html javascript single file answer without any css.


    1. My prompt was; "give me a beginner friendly javascript Leet code question"

    2. ChatGPT got the question from here. Here is the problem statement;


    3. How I would do it;
          I would make a random number generator from 0-99 using math.random, have it run 5 times and search for the largest number then print said number.
        


    4. This is how ChatGPT did it;

      chatgpt-leetcode.html