By looking at the “classical” Bubble sort there can be found that the original algorithm is so unoptimized.
Simple Java implementation of the Bubble sort algorithm.
This post is about how to fix the error in Spring Data JPA – java.sql.SQLException: Can not issue data manipulation statements with executeQuery().
Let’s consider a java code for testing if a file is read-only and setting it writable if it is possible.
This is a simple Java implementation of Binary to Decimal number 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”.
This is my solution to the LeetCode problem – 4Sum.
This is my solution to LeetCode problem – Longest Substring Without Repeating Characters.
This is my own solution to the LeetCode problem – Rotate Image.
This is my solution to the LeetCode problem – Diameter of Binary Tree.