I made a chess library for Java

One day I was feeling pretty bored, so I started making a chess library. I had originally named it ChessBored, but then I decided against… Read more

Similar

Finding Number Complements Using Java

The problem Given a positive integer num, output its complement number. The complement strategy is to flip the bits of its binary representation. Example 1: Input: num = 5 Output: 2 Explanation: The binary representation of 5 is 101 (no leading zero bits)... (more…)

Read more »

Lambda Functions in Java

Sometimes when writing software, it is useful to pass a function as an argument to another function. A common example for this is a generic filter function. In pseudo code, it would look something like this: (more…)

Read more »