码迷,mamicode.com
首页 >  
搜索关键字:turn    ( 27138个结果
数据结构第一章绪论课后小练
题一: 判断n是否是一个素数,若是则返回逻辑值true,否则返回逻辑值false。 题二: 设计一个算法,计算∑i=1ni!的值。 题三: 设计一个算法,计算满足不等式1+2+3+······+i>=n的最小值。 题四: 打印一个n行乘法口诀表。 (未完待续) ...
分类:其他好文   时间:2019-04-05 23:59:17    阅读次数:267
【hihocoder】字符消除
package Lv1; import java.util.*; public class 字符消除 { // f(s):返回消除s连续相同字符的个数 private static int f(String s) { int ans = 0; StringBuffer sb = new String... ...
分类:其他好文   时间:2019-04-05 23:52:42    阅读次数:240
Springboot listener
在启动流程中,会出发许多ApplicationEvent。这时会调用对应的listener的onApplicationEvent方法。ApplicationEvent时观察者模式, (1) 实体继承ApplicationEvent (2) 注入的Listener 实现接口ApplicationLis ...
分类:编程语言   时间:2019-04-05 20:09:57    阅读次数:190
Asp.Net \uxxx Unicode编码解码
/// /// Unicode编码 /// /// /// public static string EnUnicode(string str) { StringBuilder strResult = new StringBuilder(); i... ...
分类:Web程序   时间:2019-04-05 20:02:48    阅读次数:919
SliverList , SliverFixedExtentList
SliverList 高度自动, SliverFixedExtentList 高度固定死. CustomScrollView( slivers:[ SliverList( delegate: SliverChildBuilderDelegate((context,... ...
分类:其他好文   时间:2019-04-05 19:49:55    阅读次数:379
vue子传父多个值
子组件:this.$emit("methdosName",data1,data2,data3) 父组件: <child @methodsName="xxx(arguments)"></child> 例子: 子组件: 父组件: ...
分类:其他好文   时间:2019-04-05 18:25:54    阅读次数:838
django drf 自定义jwt用户验证逻辑
新建Backend类 配置settings ...
分类:其他好文   时间:2019-04-05 18:17:13    阅读次数:172
876. Middle of the Linked List
1. 原始题目 Given a non-empty, singly linked list with head node head, return a middle node of linked list. If there are two middle nodes, return the seco ...
分类:其他好文   时间:2019-04-05 16:54:43    阅读次数:153
二分法查找c++实现
#include using namespace std; const int array_size = 5; int binaryMethod(int intArray[],int goal); int main() { int age[] = {10,20,30,40,50}; int sear... ...
分类:编程语言   时间:2019-04-05 14:30:51    阅读次数:172
$P1282 多米诺骨牌$
"problem" 此题是一道01背包。 关于01 背包 我不想讲了 "$MY \ BLOG$" $$这道题是一道基础的01背包问题$$ $$设f[i][j]=k表示前i张牌构成分值j的最小次数k$$ $$设 dis = a[i] b[i]$$ //不反转 $$f[i][j+dis+N]=min(f ...
分类:其他好文   时间:2019-04-05 14:11:15    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!