Introduction to Computer Science
Binary, hardware, algorithms, code and the internet: the ideas behind every computer
Technology & ProgrammingBig O, arrays, hash tables, trees, graphs, sorting and dynamic programming with hands-on code
Finish the 13 lessons (about 2 h 40 min) and pass the 20-question final exam. Your Certificate of Completion is ready the moment you pass.
Two programs can give the same correct answer and still differ by a factor of a million in speed. One searches a sorted list of a billion names in about 30 steps; the other might take a billion. The difference isn't faster hardware or a cleverer language. It's the choice of data structure and algorithm, and that choice is what this course teaches.
You'll start with the tools for reasoning about efficiency: counting operations, Big O notation, and analyzing loops and recursive functions. Then you'll work through the core data structures that appear in almost every program and technical interview: arrays and dynamic arrays, linked lists, stacks, queues and hash tables. For each one you'll learn how it's laid out, what each operation costs, and when to choose it.
Next come searching and sorting. You'll write binary search, compare insertion, selection and bubble sort, and see how merge sort and quicksort reach O(n log n). After that you'll build intuition for hierarchical and networked data with binary search trees, heaps and graphs, including breadth-first and depth-first search. The final lesson introduces dynamic programming and greedy algorithms, two strategies for problems that seem to need brute force.
The course is for students who can already write basic code with variables, loops, functions and arrays in any language, whether you're in a computer science program, preparing for coding interviews, or teaching yourself. Code challenges use JavaScript and run right in your browser; if you know Python or Java, the syntax will feel familiar. Each lesson combines short explanations with calculators, code exercises and quick checks, and you can earn a free certificate by passing the final exam.
Count the work an algorithm does, describe its growth with Big O notation, and analyze loops and recursive functions.
The workhorse data structures: how they're laid out in memory, what each operation costs and when to use which.
Binary search, the simple quadratic sorts, and the divide-and-conquer sorts that reach O(n log n).
Hierarchical structures that keep data ordered or prioritized: binary search trees, traversals, heaps and priority queues.
Model connections with graphs, explore them with BFS and DFS, and solve hard-looking problems with dynamic programming and greedy strategies.
20 questions drawn from a pool of 39. Score 70% or more to pass; retakes get a fresh set of questions.
Why do computer scientists usually describe algorithms by counting operations as a function of n rather than by timing them?
Answer: B. Operation counts describe the algorithm itself, independent of hardware, language and other programs running
Timings depend on the machine, language, compiler and background load, so they don't transfer between environments. Counting operations as a function of n captures how the algorithm itself scales. Timing is still useful for measuring real programs; it just doesn't describe the algorithm in general.
No. The ideas are language-independent. Code exercises use JavaScript because it runs in the browser, but they stick to basic syntax such as loops, arrays, objects and functions, so anyone who has written Python, Java, C or similar code can follow them.
Big O describes how the work an algorithm does grows as the input gets larger, ignoring constant factors and small terms. O(n) means the work grows in proportion to the input size; O(n²) means doubling the input roughly quadruples the work; O(log n) means doubling the input adds only one more step.
Arrays, hash tables (dictionaries or maps), stacks and queues cover a large share of real programming and interview problems. After those, learn trees, heaps and graphs. This course follows that order.
It covers the core concepts most interviews test: complexity analysis, the main data structures, searching, sorting, trees, graph traversal and an introduction to dynamic programming. To be interview-ready you'll also need plenty of practice solving problems under time pressure on top of this foundation.
You'll usually use the built-in sort in real code. Studying sorting algorithms teaches you divide and conquer, recursion, stability and trade-offs between time and memory, and helps you know when sorting first makes a problem easier.
Basic algebra is enough. You'll use logarithms base 2, which simply answer the question of how many times you can halve a number before reaching 1. Every formula is explained with examples.
Binary, hardware, algorithms, code and the internet: the ideas behind every computer
Technology & ProgrammingClasses, encapsulation, inheritance, polymorphism and SOLID design
Technology & ProgrammingProcesses, threads, scheduling, memory, file systems and protection explained
Technology & ProgrammingFrom bits and logic gates to processors, memory and the operating system
Technology & ProgrammingData, algorithms, the internet and the impact of computing, the big ideas of CS
Technology & ProgrammingCount, convert and calculate in binary, hexadecimal and octal like a computer
Technology & Programming