Berkeley 61a HW1


These days, I’m rasing my English level by watching online lecture about CS in Berkeley website which is famous around the world.  Also, I can according many professional words (in CS and Math) by this. This is an indispensable step for make my study more easier in USA. And the best CS school’s lecture can let me think in different ways about my major.

ChatGPT: These days, I am improving my English by watching online lectures about Computer Science from Berkeley’s world-renowned website. This helps me learn many professional terms in CS and Math, which is essential for my future studies in the USA. The lectures from the best CS school in the world also provide me with a unique perspective on my major.

In another hand, I don’t have Berkeley account (Even can not sign up), however I also must type down my thought and save it. When I was wondering how to make it, I remember there is a cute blog suddenly which I programming it in 2018.

ChatGPT: However, I do not have a Berkeley account, and I cannot even sign up for one. Nevertheless, I still want to type and save my thoughts. Fortunately, I remembered a cute blog that I had programmed back in 2018.

Time is gold, let’s start!

ChatGPT: Time is precious, so let’s get started!”

Homework – 1 :

H1Q1

And now the two blanks I give it is: a-b AND a+b;

SO I AM WRONGNING, SOLUTION GIVE THE TWO BLANKS IS: sub  AND  add

And here is the qustion 2:

My answer is ” return i* i + j* j+ k* k- max (1, 2, 3)* max (1, 2, 3)

So my answer is TRUE, and the other answer which official perform is “return min(i*i+j*j, i*i+k*k, j*j+k*k)“, I think it’s a bit  low efficiency, mine too. (Is there aren’t better answer? I don’t know)

Now,  question 3:

I coding below:

And this is official codes:

My program’s output is correct. So I passed this question.

I coding below:

Official code:

It’s actually same although it seems a little different.

ChatGPT:It’s actually the same, although it may seem a little different.

It’s all done, I will check mistakes in this pssage by using ChatGPT in nearly future and this can also useful in my English proving.

ChatGPT:I’m done with it now, and I will check for any mistakes in this passage by using ChatGPT in the near future. This can also be useful in improving my English.


发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注