Find the Duplicates

You’ll find multiple reasons to remove duplicates from a series of random numbers. The main reason is that the process or generating random numbers is capable of yielding duplicate values. But more importantly, if your list represents discrete items in the real world, such as playing cards, you can’t really have a duplicate value pop up.
Continue reading

I’m Outta Here

A specific command to terminate a program was popular with programming languages long ago. For example, in BASIC you had the END command, which exited a program. For unusual circumstances, you could use the STOP command. It was the abnormal termination command, which stopped the program and also generated a “Break in line” message (in GW Basic). I’m sure other early languages also had commands to bail out of a program, and modern languages are the same.
Continue reading