Category: Programming

Next Closest Time (Leetcode Challenge)

I came up with a quick brute force Java solution to the leetcode problem “Next Closest Time”. You can read the problem description and try to solve it for yourself here. Overview: 1. build an integer array of digits 2. create a copy of the digits array and sort it 3. starting from the end…


Adding Custom Delimiters to a String with Regex, PostgreSQL and PL/pgSQL

On this post I will be covering how to use regex to add custom delimiters to a string. The code referenced in this post was written to work in Postgres 10.3. The code will not work as expected in Postgres 9.6 or below. The function that I created as an example for this post takes…