Blog: Lessons4Devs 
222 blogs
updated: 41 min. ago


Array Sorting Algorithms
Insertion Sort (n2) Merge Sort (n lg n)


ERROR 1410 (42000): You are not allowed to create a user with GRANT
You will get this error ERROR 1410 (42000): You are not allowed to create a user with GRANT If you are trying to run a GRANT on a user that ...


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:




Made better & faster using https://www.yourkit.com/ Java Profiler