Skip to main content
PCSalt logo
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.

Java 1 min read

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.

Java 1 min read