cs50 / lectures Goto Github PK
View Code? Open in Web Editor NEWSource code for CS50's lectures
Source code for CS50's lectures
Make the sidebar of the cs50/x course's home website to be collapsable
This is not a super critical issue, but thought to bring this small suggestion in your consideration.
These both workarounds not suitable as these are:
Browser dependent,
Repetitive
require redoing at every load of a page
Reduce the website's functionality
content got omitted, commands not copyable etc in reader view or sidebar removal respectively in web-dev-tools hack
At best, are fiddly
So, having a built-in functionality to the site would be awesome.
In the "CS50 2021/2022 - Lecture 3 - Algorithms" , in section of "Sort Race" at the end,
Order of running time came out to be: Merge sort < Selection sort < Bubble sort
With content something like given below:
(sorry, this ain't related to "Source code for CS50's lectures" ; but lectures... i couldn't think of other place to suggest this)
2:00:29 it's worth noting that
why?
But in a single run of inner loop in bubble sort:
Show style50
being used with a pager (like less
) early on to ease its usage and uplift the UX.
I have been using this for quite some time now, and style50 becomes just sooooo much more pleasant to use when the output is controlled and scrollable like that.
$ style50 mario.c | less -r
the -r
option here just ensures that the highlight stays there in the paged output as well.
I have know the ability to pipe (output of) commands to pagers like less
or more
on *nix systems, but i didn't made this suggestion earlier risking increased complexity.
But recently did Week 7 SQL, and saw more
being used there (ref: 2023/22 Lecture 7: SQL at 13:45) as:
$ python favorites.py | more
... with accompanying phrase being very nice and abstracted "I have paused the output". So, as a pager is already used in the course, I would like to propose that it's usage be shown earlier as well while using style50
command due to aforementioned reasons.
# ignore alphabetical strings too long to be words
if index >= LENGTH:
If the text contains pneumonoultramicroscopicsilicovolcanoconiosis
, index will be 45 (LENGTH
) after reading the final 's'
and the word is thrown away.
If you run ./speller large large
you will see:
WORDS MISSPELLED: 0
WORDS IN DICTIONARY: 143091
WORDS IN TEXT: 143090 <<---- missing the longest word
@dmalan please help me sir
@dmalan Since GC in CS50.c is a washout version of Mark & Sweep algorithm, just sweep in this case, do you think it will be well suited if we introduce an exercise or a hacker edition psets on this topic? I think that it'll strengthen the understandings and usage of both structures and pointers.
https://github.com/cs50/lectures/blob/master/2017/fall/3/binary0.c#L66
Though clang
complains with
binary0.c:66:1: error: control may reach end of non-void function
[-Werror,-Wreturn-type]
without.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.