网站首页 站内搜索

搜索结果

查询Tags标签: res,共有 2243条记录
  • node和mongoDB

    js运行在服务器 node -v 看版本let http = require("http"); let server = http.createServer(function(req, res){res.end("hello"); }); server.listen(3000);node js文件运行该文件,作为服务器占用3000端口 end只执行一次,里面可以写html标签 w…

    2021/10/31 19:10:47 人评论 次浏览
  • node和mongoDB

    js运行在服务器 node -v 看版本let http = require("http"); let server = http.createServer(function(req, res){res.end("hello"); }); server.listen(3000);node js文件运行该文件,作为服务器占用3000端口 end只执行一次,里面可以写html标签 w…

    2021/10/31 19:10:47 人评论 次浏览
  • node.js处理http请求总结

    /** @Description: get和post总结* @Version: 1.0* @Autor: Nanke_南柯* @Date: 2021-10-31 14:02:45* @LastEditors: Nanke_南柯* @LastEditTime: 2021-10-31 14:16:35*/ const http = require("http"); const querystring = require("querystring")…

    2021/10/31 14:39:46 人评论 次浏览
  • node.js处理http请求总结

    /** @Description: get和post总结* @Version: 1.0* @Autor: Nanke_南柯* @Date: 2021-10-31 14:02:45* @LastEditors: Nanke_南柯* @LastEditTime: 2021-10-31 14:16:35*/ const http = require("http"); const querystring = require("querystring")…

    2021/10/31 14:39:46 人评论 次浏览
  • 实验二 数组、指针与C++标准库

    任务5 源代码: info.hpp#pragma once #include<iostream> #include<iomanip>class Info { public:Info(const std::string &nickname0 = "", const std::string &contact0 = "", const std::string &city0 = "", …

    2021/10/31 14:09:53 人评论 次浏览
  • 实验二 数组、指针与C++标准库

    任务5 源代码: info.hpp#pragma once #include<iostream> #include<iomanip>class Info { public:Info(const std::string &nickname0 = "", const std::string &contact0 = "", const std::string &city0 = "", …

    2021/10/31 14:09:53 人评论 次浏览
  • 头条小程序支付thinkphp + uniapp

    后端 后端php,按官方来处理就行/*** @name: 头条小程序 支付* @param {*}* @return {*}*/public function pay_order_toutiao(Order $Order){$param = $this->request->param();if (empty($param[order_id])) {$this->error(订单不存在);}$order_info = $Order-…

    2021/10/31 1:09:42 人评论 次浏览
  • 头条小程序支付thinkphp + uniapp

    后端 后端php,按官方来处理就行/*** @name: 头条小程序 支付* @param {*}* @return {*}*/public function pay_order_toutiao(Order $Order){$param = $this->request->param();if (empty($param[order_id])) {$this->error(订单不存在);}$order_info = $Order-…

    2021/10/31 1:09:42 人评论 次浏览
  • 【数论】快速幂

    $对于a^{b} ,可以用O(logb)的时间复杂度求出,使用二进制拆分的思想将b拆分成二进制,分别得出a^{2^{0}},a^{2^{1}}...a^{2^{n}}之后求积即可。$1 #include <iostream>2 using namespace std;3 4 long long qmi(int a,int b,int p)5 {6 long long res = 1,base …

    2021/10/30 23:17:48 人评论 次浏览
  • 【数论】快速幂

    $对于a^{b} ,可以用O(logb)的时间复杂度求出,使用二进制拆分的思想将b拆分成二进制,分别得出a^{2^{0}},a^{2^{1}}...a^{2^{n}}之后求积即可。$1 #include <iostream>2 using namespace std;3 4 long long qmi(int a,int b,int p)5 {6 long long res = 1,base …

    2021/10/30 23:17:48 人评论 次浏览
  • leetcode, 338题【比特位计数】

    比特位计数 题目描述测试用例算法1.利用位运算2.神解法题目描述 给你一个整数 n ,对于 0 <= i <= n 中的每个 i ,计算其二进制表示中 1 的个数 ,返回一个长度为 n + 1 的数组 ans 作为答案。来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/coun…

    2021/10/30 23:12:51 人评论 次浏览
  • leetcode, 338题【比特位计数】

    比特位计数 题目描述测试用例算法1.利用位运算2.神解法题目描述 给你一个整数 n ,对于 0 <= i <= n 中的每个 i ,计算其二进制表示中 1 的个数 ,返回一个长度为 n + 1 的数组 ans 作为答案。来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/coun…

    2021/10/30 23:12:51 人评论 次浏览
  • leetcode, 448题【找到所有数组中消失的数字】

    找到所有数组中消失的数字 问题描述测试用例算法1.利用数组下标问题描述 给你一个含 n 个整数的数组 nums ,其中 nums[i] 在区间 [1, n] 内。请你找出所有在 [1, n] 范围内但没有出现在 nums 中的数字,并以数组的形式返回结果。来源:力扣(LeetCode) 链接:https://le…

    2021/10/30 23:11:32 人评论 次浏览
  • leetcode, 448题【找到所有数组中消失的数字】

    找到所有数组中消失的数字 问题描述测试用例算法1.利用数组下标问题描述 给你一个含 n 个整数的数组 nums ,其中 nums[i] 在区间 [1, n] 内。请你找出所有在 [1, n] 范围内但没有出现在 nums 中的数字,并以数组的形式返回结果。来源:力扣(LeetCode) 链接:https://le…

    2021/10/30 23:11:32 人评论 次浏览
  • LeetCode 53.最大子序和【Java】

    目录 一、题目二、解题思路三、Java代码一、题目 给定一个整数数组 nums ,找到一个具有最大和的连续子数组(子数组最少包含一个元素),返回其最大和。 二、解题思路 先对数组进行遍历,令最大子序和为sum。 若sum>0,则sum对结果增大有作用,此时让sum=sum+1; 若sum…

    2021/10/30 1:11:19 人评论 次浏览
扫一扫关注最新编程教程