查看: 13256| 回复: 37
跳转到指定楼层
上一主题 下一主题
收起左侧

Harvard CS50 每周打卡以及总结

 
全局:
公开课
学校名称: Harvard
Unit号: 10
开课时间: 2020-01-06
课程全名: CS50's Introduction to Computer Science
平台: Edx
URL: https://courses.edx.org/courses/course-v1:HarvardX+CS50+X/course/#block-v1:HarvardX+CS50+X+type@chapter+block@b94adcd6bd6b4e69b2af7eef0d828674

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x
楼主工业设计背景,UX方向并且准备转PM,打算自学CS。至于为什么我会选择从最基础的c开始学,大家可以参考,不论是大火的Python还是设计网页用的html JavaScript,都较为表层,今年学了python今年或许可以马上用,但是学得不深入,过两年或许流行的语言又变了,楼主senior所以觉得还有时间一步一步去学习cs,故而从最底层的开始学。整个uc体系cs都是这样过来的,我觉得其中一定有其道理,如果有愿意和我一起打卡学习的,欢迎,欢迎!觉得我的总结不烂的,欢迎投米lol


补充内容 (2020-4-1 02:46):
还是别看我的笔记了,我的笔记一般只有我看得懂。。。。。

评分

参与人数 2大米 +7 收起 理由
yeehaah + 5 给你点个赞!
debuger + 2 给你点个赞!

查看全部评分


上一篇:寒假自学计划
下一篇:Q&A | Machine Learning | Coursera | Andrew Ng
推荐
 楼主| Claudius 2020-1-28 13:11:24 | 只看该作者
全局:
Operator
Add(+)  subtract(-)  multiply(*)  divide(/)  modulus(%) get the reminder

Boolean expression: one of two possible values: T or F
None zero - T
Zero - F

Logical AND(&&) all true - T
Logical OR(||) All - F
Logical NOT(!) - true - F   false - T

Relational operation
Equality (x==y)
Inequality (x!=y)

Conditioner
If
If  else if… else

switch
Switch(x)
Case1:
Case2:
…
fall through to the end and print all

loop
While (boolean expression)
{
}
Do
{
}
for(int i=0; i<10;i++)
{
}
回复

使用道具 举报

推荐
 楼主| Claudius 2020-1-28 13:12:31 | 只看该作者
全局:
Week4
Search
Linear search
Look through the entire array to find a element
Binary search
Sort the array, calculate the middle. Change the start&end point, repeat till middle point is what we are looking for


Sort
Bubble sort
Swap counter: check the elements two by two, guarantee each of them in order
Selection sort
Find the smallest one and sort it
Insertion sort
Call the first element of the array sorted and sort other elements one by one
Merge sort
Sort left part, sort left part. Compare the first elements of two array and sort
回复

使用道具 举报

推荐
 楼主| Claudius 2020-1-28 13:12:42 | 只看该作者
全局:
Recursion
In recursion, we need a basic case as a stop point and reclusive case for our function
Int fact(int n)
{
    If(n==1)
        {
            Return 1;
    else
        {
            Return n*fact(n-1)
回复

使用道具 举报

🔗
 楼主| Claudius 2020-1-28 13:10:57 | 只看该作者
全局:
Week1
Int //integers;
char //store single character;
float //store floating point number;(32 bit)
double //store floating-point values;(64 bit)
void //not a data type but a type;
bool //store boolean value
string //store a series of characters
回复

使用道具 举报

🔗
 楼主| Claudius 2020-1-28 13:12:15 | 只看该作者
全局:
Week2
Function
Function declaration : return type, name(argument list)
e.g. int add_two(int a, int b)
回复

使用道具 举报

🔗
 楼主| Claudius 2020-2-11 08:35:27 | 只看该作者
全局:
Week5

Hexadecimal
123456789abcdef (16)

Pointers
&: get the address
*:  go to the address
回复

使用道具 举报

🔗
 楼主| Claudius 2020-2-18 09:07:00 | 只看该作者
全局:
Week7 restart .....

IMG_B8B71F95F841-1.jpeg (446.53 KB, 下载次数: 1)

IMG_B8B71F95F841-1.jpeg
回复

使用道具 举报

🔗
 楼主| Claudius 2020-2-20 10:46:25 | 只看该作者
全局:
c
take a drink in the fire hydrant
\n move the prompt to a new line
./ executive

string answer = get_string("what is your name\n")
print("hello,%s\n,answer")  
s means the datatype string
回复

使用道具 举报

全局:
第一次知道这个课 谢谢楼主分享
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表