注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
本帖最后由 a7e7b18 于 2022-3-8 15:34 编辑
相信小白們(包括我),刷題是非常有挑戰性的,因為大多數都沒有java或者ds/algo的基礎。本篇將會分享一下我如何step-by-step去學習和掌握這些基礎,以及我做leetcode的順序。
1. Java Fundamentals 與 Data Structures / Algorithms (for leetcode)
我用的是 Intro to Java Programming, Comprehensive Version (10th Edition) by Y. Daniel Liang
以下舉例一些Chapters
Chapter 1 Introduction to Computers, Programs, and Java
Chapter 2 Elementary Programming
Chapter 3 Selections
Chapter 4 Mathematical Functions, Characters, and Strings
Chapter 5 Loops
Chapter 6 Methods
Chapter 7 Single-Dimensional Arrays
Chapter 8 Multidimensional Arrays
Chapter 18 Recursion
Chapter 20 Lists, Stacks, Queues, and Priority Queues
Chapter 21 Sets and Maps
Chapter 22 Developing Efficient Algorithms
Chapter 23 Sorting
Chapter 24 Implementing Lists, Stacks, Queues, and Priority Queues
Chapter 25 Binary Search Trees
Chapter 26 AVL Trees
Chapter 27 Hashing
Chapter 28 Graphs and Applications
Chapter 29 Weighted Graphs and Applications
(reference: https://www.pearson.com/us/highe ... 3.html?tab=contents)
不喜歡書的可以去
https://www.youtube.com/watch?v= ... annel=DineshVaryani
cs61b 也是很好的課,不過我以leetcode為主,我覺得上面的書和YouTube已經能夠很直接地去學到了
2. LeetCode
先做 Study Plan 裡的 Algorithm
再做Data Structure
這樣基本上總共大概做了200題
然後就是做Top 100 Liked Questions 和Top Interview Questions
當中不會的就直接看solutions 再研究
如果題目重覆的話你便應該懂怎麼做,題目遇到第二次,但仍然做不來,那就要反省一下為什麼
Others:
有什麼題目看了solution不會做/ds/algo不懂,直接geeksforgeeks/google/youtube
大家加油!我也繼續努力
記住一定要先做 Study Plan 裡的 Algorithm
記住一定要先做 Study Plan 裡的 Algorithm
記住一定要先做 Study Plan 裡的 Algorithm
記住一定要先做 Study Plan 裡的 Algorithm
記住一定要先做 Study Plan 裡的 Algorithm
記住一定要先做 Study Plan 裡的 Algorithm
記住一定要先做 Study Plan 裡的 Algorithm
記住一定要先做 Study Plan 裡的 Algorithm
記住一定要先做 Study Plan 裡的 Algorithm
补充内容 (2022-03-18 14:12 +8:00):
Q:Project 怎麼準備?
看看你喜歡什麼樣的技術,直接去youtube搜,其實都已經有一大堆project-based的影片
其中有兩個我很推薦的
1. 尚硅谷 (strongly recommended)
2. freecodecamp
尚硅谷都是免費的,而且也是project-based,技術也很到位 |