摘要:平时练习算法题学习算法知识时,经常会发现题解里写着“动态规划”,里面一上来就是一个复杂的dp公式,对于新人来说除了说声“妙啊”,剩下就是疑惑,他是怎么想到这个公式的?我能想到吗?这玩意工作中有用吗? 本文分享自华为云社区《动态规划究竟是怎么想到的?【奔跑吧!JAVA】》,原文作者:breakD ...
分类:
其他好文 时间:
2021-06-28 18:25:30
阅读次数:
0
function a1() { return new Promise(o => { console.log("a1") o('a1_1') }) } async function a2() { const _a2 = await a1() console.log(_a2); console.log( ...
分类:
其他好文 时间:
2021-06-28 17:45:59
阅读次数:
0
export function chooseWXPay(params: wx.ChooseWXPayConfig) { return new Promise<{ status: 'success' | 'error' | 'cancel'; result?: string; message?: st ...
分类:
微信 时间:
2021-06-28 17:44:33
阅读次数:
0
身份证格式 六位数字地址码 + 八位数字出生日期码 + 三位数字顺序码 + 一位数字校验码 checkIdCard.js checkIdCard: function (idCard){ //15位和18位身份证号码的正则表达式 var regIdCard=/^(^[1-9]\d{7}((0\d)|( ...
分类:
Web程序 时间:
2021-06-25 17:26:41
阅读次数:
0
一、简介 基于matlab GUI抽签 二、源代码 function varargout = example(varargin) % EXAMPLE M-file for example.fig % EXAMPLE, by itself, creates a new EXAMPLE or raise ...
分类:
其他好文 时间:
2021-06-25 17:17:35
阅读次数:
0
1 <?php 2 $str = '1234'; 3 $ar =str_split($str); 4 perm($ar, 0, count($ar)-1); 5 6 function perm(&$ar, $now, $length) { 7 if($now == $length){ 8 $str= ...
分类:
Web程序 时间:
2021-06-25 16:41:48
阅读次数:
0
//1.contextmenu 禁止鼠标右键菜单 document.addEventListener('contextmenu',function(e){ e.preventDefault(); }); //2.禁止选中文字 selectstart document.addEventListener ...
分类:
其他好文 时间:
2021-06-25 16:33:50
阅读次数:
0
###js var href='http://localhost:8083/datas/dataflow/logicJob?id=CMZJJO2100000001&type=proLook' var urlParams = (function(url){ var result = new Objec ...
分类:
其他好文 时间:
2021-06-25 16:32:45
阅读次数:
0
$('#gridTable').kendoGrid({ dataSource: { pageSize: 10, serverPaging: true, transport: { read: this.bind(function (options) { if (!options.data.pageSi ...
分类:
其他好文 时间:
2021-06-24 18:05:53
阅读次数:
0
1、添加一条数据 insert insert 方法添加数据成功返回添加成功的条数,通常情况返回 1 public function index(){ $data = ['cat'=>'1','title'=>'日系小浪漫与温暖羊毛针织拼接网纱百褶中长收腰连衣裙','price'=>'1598.35' ...
分类:
数据库 时间:
2021-06-24 18:05:18
阅读次数:
0