There are times when we need to inspect all the fields of the asset or either to perform other tasks. One can find all the details of… Read more “Get the asset details – Fatwire / WebCenter Sites”
Sonar Setup for Java and Groovy
Hola Folks, SonarQube, it’s an required tool when you’re going though a quality work and want to maintain it with your team as well. Below are the… Read more “Sonar Setup for Java and Groovy”
Mergesort
One of the divide and conquer types of algo. Merging: Combine two ordered arrays to make one larger ordered array. Mergesort: To sort an array Divide it… Read more “Mergesort”
Binary Search
Binary search, a simple but yet effective algorithm to search and still used at many places. First Binary Search Algorithm published in 1946; first bug-free one in… Read more “Binary Search”
Why java calls `toString()` on `println()`
I know that calling an println(Object o) actually works as println(o.toString()) thing before but, today Found an implementation of println() at GrepCode for openjdk. Here is what… Read more “Why java calls `toString()` on `println()`”
Nth Root
Same as my Previous Post from SQRT Implementation, We can also find Nth Root Using the Newton-Raphson. Here it Goes,
Made a High-Low Game of Cards today
Finally Yesterday, after learning Some Array and Some Card Algorithms, Made a High-Low Card Game, which I like most while Playing a Poker. Currently It’s NOT in a… Read more “Made a High-Low Game of Cards today”
SQRT Implementation
Newton’s method. Sqrt.java uses a classic iterative technique that dates back to Heron of Alexandria in the first century. It is a special case of the more general Newton-Raphson method. To… Read more “SQRT Implementation”
Selection Sort
The selection sort improves on the bubble sort by reducing the number of swaps necessary from O(N^2) to O(N). Unfortunately, the number of comparisons remains O(N^2). However,… Read more “Selection Sort”
Bubble Sort
Bubble Sort is a simple sorting Algorithm that works through repeatedly comparing the each pair of adjacent item and swapping them if they are in the wrong… Read more “Bubble Sort”