44 Commits

Author SHA1 Message Date
f1b4cdcd6d content: fix typo in Queue questions 2022-05-31 10:05:16 +08:00
c696505835 contents(algo): fix typo in math cheat sheet (#276)
* Fix typo in math cheat sheet

* Update math.md

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2022-05-18 11:06:29 +08:00
016f1250b9 contents(algo): split recommended qns into essential vs practice 2022-05-14 07:56:48 +08:00
87a923079d contents(algo): fix typo and suggestions (#272) 2022-05-14 07:02:26 +08:00
d90f358311 contents(algo): fix typo in matrix cheat sheet (#273) 2022-05-14 07:00:43 +08:00
75c75293b1 seo: add social image 2022-05-11 10:55:47 +08:00
e67915db50 contents: std::map is not a hash-table (#269)
std::map is compare-based, the hash table in the standard library is std::unordered_map
https://en.cppreference.com/w/cpp/container/map
https://en.cppreference.com/w/cpp/container/unordered_map
2022-04-20 18:27:03 +08:00
3b177fae95 contents: complete coding interview techniques optimization section 2022-04-10 16:47:03 +08:00
99490862b3 contents: integrate best-practice-questions into rest of the docs 2022-04-10 12:30:07 +08:00
7eccc0db17 website: add sidebar structure 2022-04-08 18:55:26 +08:00
73dd64f96d contents: rearrange algo layout structure 2022-04-06 09:47:25 +08:00
ce79ad0d9b contents: revamp basic algo content 2022-04-03 18:51:41 +08:00
c160df7abe website: embed partner placements within docs 2022-03-18 08:41:37 +08:00
42c21f9819 contents: reorganize algorithms section 2022-02-06 15:41:56 +08:00
b701bc96f9 website: change top navbar 2022-02-02 14:04:16 +08:00
8bb7175524 website: add rel="noopener" to external links 2022-02-02 07:12:30 +08:00
367b3d6577 contents: make title casing consistent 2022-01-25 09:55:51 +08:00
cbe5bf7156 contents: add more resources for DP (#254)
Added BaseCS blog post on Dynamic Programming to study links section
2022-01-05 08:53:28 +08:00
a5653add4d misc: remove dead link 2021-12-18 15:53:48 +08:00
36a2ec2c0a contents: make the Partition Equal Subset Sum link both (#246)
"Partition Equal Subset Sum" and "0/1 Knapsack"

Closes #234
2021-11-01 07:37:59 +08:00
67059d0b9c feat: add suggestion problem to knapsack knowledge (#239) 2021-10-08 01:19:58 +08:00
f42c33b061 contents: add Parking Lot question to OOP (#237)
Design a parking lot system is an important sample question in low-level design. It would be great if this question is added.
2021-10-06 02:07:35 +08:00
5ac393fe0e content: add new math suggestion (#233)
* content: add new math suggestion

* Update math.md

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2021-10-05 11:19:57 +08:00
83e97337a6 Include a snippet for swapping two variables using bitwise operators (#229)
This swaps the two values in the two variables without needing a third variable.
2021-10-02 17:33:25 +08:00
b3191d9729 content: add new matrix question (#227)
This is an interesting question because it requires to break the matrix into a smaller matrix
2021-09-21 02:08:22 +08:00
0535dd0d7f website: homepage improvements 2021-09-19 01:58:21 +08:00
1de5dd75ee content: add new sliding window question (#226) 2021-09-17 00:22:00 +08:00
2ab149aa74 misc: update README 2021-09-14 13:58:54 +08:00
5ade227f71 contents: add Educative 2021-09-06 20:53:05 +08:00
c695750222 contents: proofread 2021-09-02 01:30:39 +08:00
11ad8c6f7c contents: audit algorithms formatting 2021-05-29 17:37:38 +08:00
5d1265df24 algo: remove similar question (#202)
Removed
`- Sort a list where each element is no more than k positions away from its sorted position.`
as it is same as 
`Sort a list of numbers in which each number is at a distance K from its actual position.`
2021-04-13 09:23:09 +08:00
11f9a22b86 content: check if a number is a power of 2 (#196)
* Check if a number is a power of 2

This representation may be easier to understand for some people.
If a number is power of two then `AND` operation between the number and its complement will result into the same number.

* Update binary.md

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2021-03-29 17:58:59 +08:00
ca24fc0f20 contents: update linked list insertion and deletion explanation (#175) 2020-09-25 16:54:54 +08:00
256c3847fe contents: add tip on traversing arrays (#171) 2020-08-03 15:25:39 +08:00
c1386e812d contents(oop): add new Elevator question (#156) 2020-03-15 13:24:48 +08:00
430b1ac501 contents: link to LeetCode's Longest Common Subsequence question (#150) 2019-12-31 19:42:56 +08:00
002c7f1215 chore: remove freeform questions 2019-09-25 19:05:35 -07:00
9631a1d8d9 misc: use Alice/Bob 2019-09-22 14:37:35 -07:00
c43337fdfb Fix small issue with bfs algorithm (#141)
Algorithm performed a dfs rather than bfs because of the queue.pop() error on line 78. Updated to queue.popleft()
2019-09-20 20:10:12 -07:00
473dfb2d22 contents: add bfs algorithm (#137)
* Add new Graph traversal implementation

* Add seperate BFS implementation

* Cleanup code and comments

* Rename variable and remove another comment

* Switch to deque for DFS implementation

Signed-off-by: Aadit Kamat <aadit.k12@gmail.com>

* Switch back to recursive DFS and check for empty graph

Signed-off-by: Aadit Kamat <aadit.k12@gmail.com>

* Update graph.md
2019-09-13 11:46:55 -07:00
0da41f944f algorithms: remove duplicate question from sorting-searching.md (#134) 2019-08-25 21:37:53 +08:00
e6193eca83 website: launch website 2019-07-15 02:25:49 -07:00
c19c9626d1 misc: restructure contents 2019-07-14 18:52:41 -07:00