Arranging Books is a coding problem that can be viewed here. It isn’t easy, and is literally impossible to solve it correctly by actually swapping books. Here is the problem: Canadian Computing Competition: 2021 Stage 1, Junior #4 Valentina wants books on a shelf to be arranged in a particular…
Month: October 2021
C++ substr()
In C++, the substr() method is one of the easiest functions to use to split a string into multiple slices. Here are the parameters of the substr(): where name is the string that you want to be sliced, position is the staring point, and len is the number of characters…
Don’t Borrow Money to Buy Stocks!
When trying to earn money investing stocks, remember not to borrow money from the bank to buy them! There would be a huge profit if you get money from buying and selling them, but what if the stock goes down and you lose money? You wouldn’t have enought money to…
