Thread.sleep method is the most popular approach when a Java programmer wants to suspend the current thread for a specific time.
Continue reading Java Coding Tip – Thread.sleep
By looking at the “classical” Bubble sort there can be found that the original algorithm is so unoptimized.
Continue reading Optimizing Bubble Sort in Java
Simple Java implementation of the Bubble sort algorithm.
Continue reading Bubble sort in Java
Let’s consider a java code for testing if a file is read-only and setting it writable if it is possible.
Continue reading Java check or set read only file
This is a simple Java implementation of Binary to Decimal number conversion.
Continue reading Binary to Decimal java conversion
Simple java implementation of “Fisher-Yates shuffle” algorithm with modification from Richard Durstenfeld. Also, this algorithm was popularized by Donald Knuth as “Algorithm P (Shuffling)” or “Knuth shuffle”.
Continue reading Fisher-Yates shuffle java example
This is my solution to the LeetCode problem – 4Sum.
Continue reading LeetCode solution – 4Sum
This is my solution to LeetCode problem – Longest Substring Without Repeating Characters.
Continue reading LeetCode solution – Longest Substring Without Repeating Characters
This is my own solution to the LeetCode problem – Rotate Image.
Continue reading LeetCode solution – Rotate Image
This is my solution to the LeetCode problem – Diameter of Binary Tree.
Continue reading LeetCode solution – Diameter of Binary Tree