Iată lista ajustată, optimizată specific pentru LLM-uri:
1. Introduction to Linear Algebra — Gilbert Strang Vectori, matrici, transformări. Fără asta nu înțelegi nici embeddings, nici attention.
| Algoritmul Boyer Moore Vote MAjority Element | |
| int count = 0 | |
| int candidate = 0 | |
| for(int num: nums) { | |
| if(count == 0) { |
| import java.util.Scanner; | |
| //Turnurile din Hanoi (DIVIDE ET IMPERA) | |
| /* | |
| Problema: | |
| Se dau 3 tije simbolizate a, b, c. |
| import java.util.Scanner; | |
| public class FalseAlarm { | |
| static Scanner scanner = new Scanner(System.in); | |
| static void solve() { | |
| int n = scanner.nextInt(); //citim size array |
| /* | |
| 2^10 | |
| pow(2,10) | |
| 2 * 2 * 2 * ....* 2 | |
| de 10 ori | |
| fast_pow(2,10) | |
| log n = log 10 = logaritm in baza 2 din 10 = 3 |
| void solve() { | |
| int n, x;//dimnesiune si butonul apasat: x secunde | |
| cin>>n>>x; | |
| int l = 1e5, r = -1; | |
| for(int i = 0; i < n; ++i) { |
| //1,3,4,2,2 | |
| [1,2,3,4] | |
| 4/2 = 2 | |
| int findDuplicate(vector<int>_&nums) { | |
| int low = 1; | |
| int high = nums.size() - 1;// 5= 5-1= 4 | |
| [1,2,3,4] |
| int findDuplicate(vector<int>_&nums) { | |
| int low = 1; | |
| int high = nums.size() - 1;// 5= 5-1= 4 | |
| [1,2,3,4] | |
| bool validMountain(vector<int>& arr) { | |
| int n = arr.size(); | |
| int start = 0; | |
| int end = n - 1; | |
| //urcare |
| public class Main { | |
| //Maarriaa | |
| public static int CountDistinctChars(String s) { | |
| Set<Character> set = new HashSet<>();//caracterele vor fi distincte | |
| for(char c : s.toCharArray()) {//m, a, |