Problem Implement data structure overflow queue. Overflow queue is a normal queue with one extra property. It never throw Stack […]
Category: Algorithm
Word frequency in a large text file
Problem I’ve am trying to read a large text file and output the distinct words in it along with it’s […]
Randomizing and mutating algo class – functionality
Problem See Randomizing and mutating algo class – style I’m looking for a review of the functionality of this code, […]
Culling strings from a list that are substrings of other list elements
Problem I’m bothered by my answer to this SO question. I’m pretty sure it’s more efficient than the sort-and-cull implementations, […]
How to optimize bitwise get/set/clear of ranges of bits on 8-bit integers in JavaScript?
Problem I have been working for a few days on writing get, set, and clear bitwise functions in JavaScript to […]
Group duplicate files (part 2)
Problem This is a continued discussion (from here => Group duplicate files) with new code and new thoughts/questions (see special […]
Subarray Sum Equals K
Problem I’ve written a solution to the following leetcode problem: Given an array of integers and an integer k, you […]
Median function using min()
Problem I am writing a routine to calculate median using the minimum of the numbers and then changing the value […]
Finding the longest sequence of increasing numbers in an array
Problem A continuation of this queston. The task’s description can also be found there. After reformatting the code and getting […]
Optimizing Dijkstra implementation using PriorityQueue in Java
Problem I am trying to make Dijkstra implementation more efficient. Below is the code for class Node which implements Comparable […]