Algorithm
XKIND
这个作者很懒,什么都没留下…
展开
-
【Java】SM4Utils(国密 SM4 工具类)
基于 bouncycastle 实现 国密 SM4 对称加密原创 2023-08-25 10:07:07 · 1248 阅读 · 0 评论 -
【Java】SM2Utils(国密 SM2 工具类)
基于 bouncycastle 实现 国密 SM2 非对称加密原创 2023-08-25 10:01:54 · 3492 阅读 · 0 评论 -
【Java】ChineseCurrencyUtils(货币金额大写转换工具类)
import java.text.DecimalFormat;public class ChineseUtils { /** * 货币金额大写转换 (万进位系统) * @param number * @return java.lang.String */ public static String toChineseCurrency(Number number) { final String format = "AB.CDE原创 2021-06-28 23:26:10 · 664 阅读 · 0 评论 -
【LeetCode】7. 整数反转
LeetCode 7. 整数反转https://leetcode-cn.com/problems/reverse-integer/description/class Solution { public int reverse(int input) { int output = 0; for (; input != 0; input /= 10) { if ((output * 10L) > Integer.MAX_VALUE || (原创 2020-12-24 19:20:48 · 129 阅读 · 1 评论 -
【Java】RedPacketUtils(红包分配算法)
一个不严谨的红包分配算法/** * 红包分配算法 * @param total 总金额 (单位: 分) * @param num 总份数 * @return */public static Map<String, Object> lottery(int total, int num) { Map<String, Object> map = new HashMap<String, Object>(3); int t_tota原创 2020-12-10 20:28:31 · 503 阅读 · 0 评论 -
【Java】CRC8Utils(CRC-8 工具类)
Java CRC-8 工具类/** * CRC-8 * * <table width="400px" border="1" cellpadding="0" cellspacing="0"> * <tr> * <th>名称</th> * <th>多项式</th> * ...原创 2019-10-28 17:42:26 · 1252 阅读 · 1 评论 -
【Java】CRC32Utils(CRC-32 工具类)
Java CRC-32 工具类/** * CRC-32 * * <table width="400px" border="1" cellpadding="0" cellspacing="0"> * <tr> * <th>名称</th> * <th>多项式</th> * ...原创 2019-10-28 17:07:08 · 1565 阅读 · 4 评论 -
【Java】CRC16Utils(CRC-16 工具类)
Java CRC-16 工具类/** * CRC-16 * * <table width="400px" border="1" cellpadding="0" cellspacing="0"> * <tr> * <th>名称</th> * <th>多项式</th> *...原创 2019-10-22 18:16:45 · 1990 阅读 · 0 评论 -
【Java】SubarrayUtils(查找子数组工具类)
SubarrayUtils 查找子数组工具类/** * Code shared to do searches */public class SubarrayUtils { // boolean IndexOf // -------------------------------------------------------------------------------...原创 2019-06-17 14:41:33 · 1176 阅读 · 0 评论 -
【.NET / C#】SubarrayUtils(查找子数组工具类)
C# 查找子数组工具类/// <summary>/// Code shared to do searches/// </summary>public class SubarrayUtils{ /// <summary> /// Code shared by ArraySegment to do searches. /// The sou...原创 2019-06-13 11:20:43 · 578 阅读 · 0 评论