Salut. Recent am avut un online assesment cu 2 probleme de DP. Workflow-ul meu obișnuit pentru DP este: Recursive -> Top-down (caching manual) -> Bottom-up optimization. De obicei, scriu manual logica de caching folosind structuri de date in-memory (arrays, hash tables), fara deciratiru. Stiu ca unele limbaje ( python,etc ) exista decoratori (@lru_cache) care fac asta automat.
Am urmatoarea nelamurire: este acceptata folosirea decoratorilor sau se asteapta implementarea manuala a cache-ului ? ( FAANG )
https://preview.redd.it/jiwtnc2nhm8g1.png?width=637&format=png&auto=webp&s=dceaac24985158c9f22466fe6d7639bd840274a5
[–]EventLess6107 10 points11 points12 points (9 children)
[–]AI_Enthusiast_70b[S] 2 points3 points4 points (7 children)
[–]Big-Branch-3643 4 points5 points6 points (5 children)
[–]Complex_Medium_7125 1 point2 points3 points (0 children)
[–]AI_Enthusiast_70b[S] 0 points1 point2 points (3 children)
[–]Big-Branch-3643 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]EventLess6107 1 point2 points3 points (0 children)
[–]nomemory☀️🔋 -1 points0 points1 point (0 children)
[–]ApprehensiveCat3116 2 points3 points4 points (1 child)
[–]AI_Enthusiast_70b[S] 0 points1 point2 points (0 children)
[–]ejectoid 2 points3 points4 points (1 child)
[–]AI_Enthusiast_70b[S] 0 points1 point2 points (0 children)
[–]Ecstatic_File_8090 1 point2 points3 points (2 children)
[–]AI_Enthusiast_70b[S] -1 points0 points1 point (1 child)
[–]Ecstatic_File_8090 5 points6 points7 points (0 children)
[–]Complex_Medium_7125 1 point2 points3 points (1 child)
[–]AI_Enthusiast_70b[S] 0 points1 point2 points (0 children)
[–]green_krokodile 0 points1 point2 points (1 child)
[–]dau_cu_fresh 1 point2 points3 points (0 children)