Update for 30-03-22 12:00

This commit is contained in:
Tyler Perkins 2022-03-30 12:00:01 -04:00
parent b42713a3fb
commit 655e235e62

View File

@ -5,11 +5,33 @@ can run on almost anything.
== Data structures == == Data structures ==
| C++ DS | Java DS | Notes | | C++ DS | Java DS | Notes |
| Vector | ArrayList | Threadsafe | | Vector | ArrayList | Threadsafe |
| Vector | Vector | Not threadsafe; deprecated | | Vector | Vector | Not threadsafe; deprecated |
| Deque | Deque | | | Deque | Deque | |
| List | ArrayList | Both linked lists | | List | ArrayList | Both linked lists |
| | Map | TreeMap | Red-black tree |
| Set | TreeSet | Red-black tree |
| unordered_set | Hashset | Hashtable |
| unordered_map | Hashmap | Non blocking but race conditions can occour |
| unordered_map | Hashtable | Threadsafe but blocking; deprecated |
== Classes ==
=== Constructor ===
{{{
public class MyClass{
public MyClass(){
//constructor code here
}
}
}}}