PCSalt
YouTube GitHub

# algorithm

2 posts

Rearrange positive and negative numbers in an array — Java

Partition an array so all negative numbers appear on the left and positive numbers on the right, in-place with only one extra variable.

Convert JSON to comma-separated key=value pairs — Java

Recursively flatten a nested JSON object into a compact comma-separated key=value string in Java.