WarOfUnderword
WarOfUnderword
全部文章
基础算法
数据库(1)
题解(4)
归档
标签
去牛客网
登录
/
注册
Alice
全部文章
/ 基础算法
(共5篇)
卡特兰数 - n个叶子节点的完全二叉树个数
//使用递归的方式 public static double CatalanNumber(int n) { if (n == 1) { return 1; } else { return CatalanNumbe...
2023-06-14
0
267
点到直线距离公式(两点确定直线 Ax + By + C = 0)
c++ #include <iostream> #include <cmath> using namespace std; struct Point{ int x,y; Point(int x1,int y1){ x = x1; y = y1; } }; //...
C++
C
数学
Java
2022-10-08
0
576
分割字符串--split
#include<bits/stdc++.h> #define PI acos(-1) #define ios ios::sync_with_stdio(false) #define endl '\n' #define srand srand((unsigned)time(NULL)) ...
2022-09-27
0
229
表达式求值(模板)c++
#include<bits/stdc++.h> using namespace std; typedef long long int ll; typedef pair<int,int> PII; const int maxn=1e5+10; ll val(ll x,ll y...
C++
2021-09-29
0
391
全排列(next_permutation)
#include <iostream> #include <algorithm> using namespace std; int main() { int num[3]={1,2,3}; do { co...
2021-07-24
0
121