Blog: Lessons4Devs 
212 blogs
updated: 211 min. ago


RAM modules 3 and 4 not working
A very curious case. An existing system with 4 RAM modules had it's CPU upgraded. After replacing the CPU and restarting the system, BIOS wa...


Graphs – path exists? (BFS)
This is a simple implementation of a directed Graph and searching whether there is a path between node u and node v


Embedded js import scripts
Sometimes you might want to split a big js file into "modules" when developing web pages with js / jQuery. By embedded here I mean plain old...






Greedy Algorithms
Minimum number of coins For coins {1,5,10,25,50,100} find the minimum number of coins to build an amount


Dynamic Programming
Max Sum of a Subarray Given an array, find the max sum of any contiguous subarray:




Hashtables
Can form Palindrome? Write a program to test whether the letters forming a string can be permuted to form a palindrome.


Bit manipulations
Reverse bits Reverse bits of a given 32 bits unsigned integer. Example 1: Input: 0000001010010100000111101 0011100 Output: 00111001011110000...

