Samri’s Log
Ir al canal en Telegram
Hey, I’m Samri 🤗. I’m a junior developer hooked on AI and ML. This channel’s my logbook , where I drop resources, share little finds, jot down thoughts, and track my progress along the way.
Mostrar másEl país no está especificadoLa categoría no está especificada
253
Suscriptores
+124 horas
+17 días
+130 días
Archivo de publicaciones
253
Don’t ask me my approach , it took hours of trial before I give up to see the solution😕
253
Day 27 : Tuesday
Recursion continued ….
1, Full binary trees
2, Permutation sequences
3,Basic calculator
And completed the design for the project
Day 28: Today
Tortured by recursion problems 😭
1, maximum sum in binary tree
Project front end in good status …
253
Day 26 : Monday
Lately, I was struggling with backtracking problems so I went back to practice recursion
1, Find 3 even digits
Approach: applied permutation backtracking method with conditions that check the first number if it is zero and the third digit if it’s even Time : O(n^3) excluding the output sorting requirement Space : O(n)2, swap nodes in pair
Approach: recursively move 2 steps at a time and swap the value of the next and the current node value Time : O(n) Space: O(1)3, Find Kth char in string game
Approach: the hint says simulate the game , so i did pure simulation with recursion recursively build a string by iterating on pervious string with the base case length equals or greater than k Time : O( log k) Space : O(k)4. Unique 3 digit even : same as find 3 even , the return type is the number of those digits I also joined today’s div2 contest and as usual , I only solved the easy greedy problem
253
How ppl perceive me as so young is insane …. Every year, freshman students think I am freshman too
… Today, I was መለከፍ by highschool student 🤦♀️
Literally I am experiencing backpain as old person eko 😭 endee 😁
253
Repost from A2SV | Africa to Silicon Valley
Join the A2SV Remote Education G7 Program!
The A2SV Remote Education G7 community conversation has officially started! We are excited to invite brilliant members of the A2SV community to join our remote program and take part in this unique learning experience.
🎒Who Can Apply:
Students from all universities are welcome, except the following A2SV partner universities who are not eligible for the remote program (since A2SV provides in-person education at these institutions) :
AAiT, AASTU, ASTU, AUCA and University of Rwanda
Requirements:
Solved ≥60 problems across LeetCode & Codeforces (combined)
≥30 active days across LeetCode and Codeforces combined.
Application Deadline: April 13, 2026
👉Apply here: Application Form
253
I started on Monday but failed to post each day 😕
I became mother of unaccountability 😁
253
Day 21: Monday
1, Heaters
approach : Sort both heater and houses list , loop over the houses and find the nearest heater and calculate it's distance and store it if it is greater than the previous calculated radius time : O(nlogn) space : O(1)2, Capacity to ship in D days
approach : wrote a function that check if for a certain capacity we can finish shipping the weight below or on that day then binary search between maximum weight and the total weight to get the minimum capacity time : O(nlog(totalweight - maximumweight) space : O(1)3, Binary subarray with sum
approch : initate hasmap with zero key with one value. loop over the list of nums and compute prefix sum and if the sum minus the goal is in the hashmap add the value to count and then add the prefix sum to hashmap time : O(n) space : O(n)4, maximum sum obtained from any permutation
approch : create a lengnth of nums plus one list and mark requests range then compute prefix sum of the range and store it in the freq list then sort both freq and nums and sum the multiplity of the same index freq by nums. finnaly return sum time : O(nlogn) space: O(n)Day 22: Tuesday 1, Design circular queue
approach : Used doubly linked list and keep track of empty the head and the tail time : O(1) for all methods space : O(1)2, Min operation
Approach: Iterate and Check if the first number in window is zero if it’s we flip all numbers in the window and count it. finally if there any zero in the modified list return -1 else return the count Time : O(n) Space : O(1)Day 23: Wednesday 1, Magnetic forces between two
Approach: wrote a function that take a gap and place the balls and return true if we can place all balls in a given baskets. Then , sort and binary search between 1 and the valid gap ( range between the first basket and the last basket divided by the number of balls ) using that function get the maximum true gap Time : O(nlogn) Space : O(1)2, Minimum in rotated sorted array
Approach: using binary search if the mid is greater than the last element the smallest must be to the right else it must be to the left Time : O(logn) Space : O(1)Day 24 : Thursday Went to home and did some stuff and generally it was wasted day , solved 1 problem for shake of consistency but I don’t remember which one it’s Day 25: Friday 1, Maximum candies allocated
Approach: wrote a function that returns true if we can allocate for all with the given number of candies. Then binary search on left 1 to the right maximum of candies using the function , we will find the maximum true value Time : O(logn) Space :O(1)2, Search 2D matrix
Approach: use binary search to find the row the target might be found and then binary search on that row to find the target if found return True Time : O(log(row * col) Space: O(1)3, Codeforce : 1719
Approach : sort both arrays using bubble sort and at each switch save the swaps in the list and then compare both sorted arrays and if a is greater, save the swap Finally loop over saved swaps and print all time : O(n^2 ) space: O(1)
253
Repost from Bytephilosopher
መልካም በዓል መልካም ሰንበት 💛
በእግዚአብሔር ስም የሚመጣ ቡሩክ ነው መዝሙረ ዳዊት 117:26@byte_philosopher
¡Ya disponible! Investigación de Telegram 2025 — los principales insights del año 
