About Algorithm: Difference between revisions

From My Limbic Wiki
No edit summary
Line 2: Line 2:
* Use Set/Hashet for unique values [https://leetcode.com/problems/contains-duplicate/description/ https://leetcode.com/problems/contains-duplicate/]
* Use Set/Hashet for unique values [https://leetcode.com/problems/contains-duplicate/description/ https://leetcode.com/problems/contains-duplicate/]
* Use Math.max(int,int) to get the max number between a number and a calculation. https://leetcode.com/problems/best-time-to-buy-and-sell-stock/
* Use Math.max(int,int) to get the max number between a number and a calculation. https://leetcode.com/problems/best-time-to-buy-and-sell-stock/
* Two pass are necessary to calculate the left and right products https://leetcode.com/problems/product-of-array-except-self/
=Sorting Algoritms=
=Sorting Algoritms=
* [[Index.php?title=Binary Search|Binary Search]]
* [[Index.php?title=Binary Search|Binary Search]]

Revision as of 04:29, 2 October 2025

Tips

Sorting Algoritms

Graphs

  • Dijkstra
  • Topologic sorting

Cryptography & Compression

  • Shannon-Fano
  • Huffman
  • Diffie-Hellman
  • RSA

Prime Numbers

  • ?

Most beautiful Equation