LC118 杨辉三角
题目 给定一个非负整数 numRows,生成「杨辉三角」的前 numRows 行。 在「杨辉三角」中,每个数是它左上方和右上方的数的和。 例 1: 输入: numRows = 5 输出: [[1],[…
目标 路径 时间 结果 信息 定位 闭环 复盘 精力 极限 稳态 框架
题目 给定一个非负整数 numRows,生成「杨辉三角」的前 numRows 行。 在「杨辉三角」中,每个数是它左上方和右上方的数的和。 例 1: 输入: numRows = 5 输出: [[1],[…
需求描述 Write a Java program that calculates expressions such as 8+9 and 3.14 5.1. The expressions are …
需求描述 Write a Java program to find the longest word in a text file. 找到文本文件中最长的单词 解决方案 为了实现这一点,我们将使用 J…
需求描述 Write a Java program to check a string is a valid IP address. 解决方案 在Java中,我们可以使用正则表达式或者内置的Java类…
需求描述 Write a Java Program to find the duplicate characters in a string. 解决方案 在下面的示例中,我们将使用HashMap来查找…
需求描述 Write a Java Program to find whether a number is prime or not. 解决方案 方法一:使用传统的方法来检查一个数是否为素数 publ…
需求描述 Write a Java Program to reverse a string without using String inbuilt funciton reverse(). 解决方案 …
一、AES 高级加密标准(AES,Advanced Encryption Standard)为最常见的对称加密算法(微信小程序加密传输就是用这个加密算法的)。 对称加密算法也就是加密和解密用相同的密钥…
一、二分查找 又叫折半查找,要求待查找的序列有序。 每次取中间位置的值与待查关键字比较,如果中间位置的值比待查关键字大,则在前半部分循环这个查找的过程,如果中间位置的值比待查关键字小,则在后半部分循环…
【bilibili】麻省理工 算法入门 (MIT 6.006, Introduction to Algorithms, Peak Finding)【英】 https://www.bilibili.co…