This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.example; | |
| import java.math.BigInteger; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| public class CollatzCalculator { | |
| private static final BigInteger THREE = BigInteger.valueOf(3); | |
| private static final BigInteger ONE = BigInteger.ONE; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import matplotlib.font_manager as fm | |
| import matplotlib | |
| font_path="fonts/NotoSansSC-Regular.ttf" | |
| fm.fontManager.addfont(font_path) | |
| font_prop = fm.FontProperties(fname=font_path) | |
| matplotlib.rcParams['font.family'] = "Noto Sans SC" | |
| matplotlib.rcParams['font.weight'] = 'regular' | |
| plt.rcParams["axes.unicode_minus"] = False |