ICode9

精准搜索请尝试: 精确搜索
  • Dymola下的制冷剂R134A物性包的使用2020-02-06 14:02:40

    本文主要讲解如何调用Modelica.Media.R134a.R134a_ph下的各类函数,进行制冷剂物性计算。 首先要明确该包的参数计算范围 0.0039 bar ≤ p ≤ 700 bar 169.85 Kelvin ≤ T ≤ 455 Kelvin explicit for pressure and specific enthalpy 参照官方文档,可以看出函数众多,但大体可以

  • LeetCode应该怎么刷2020-02-04 14:42:40

    leetcode的题按照分类刷,每个分类的题目,解法类似,这样就用一个思路解一类题目了,下面是leetcode的题目分类整理,寒假这些天适合刷题, 目录 1. Pattern: Sliding window,滑动窗口类型 2. Pattern: two points, 双指针类型 3. Pattern: Fast & Slow pointers, 快慢指针类型 4. Patter

  • 2. Add Two Numbers [Medium]2020-01-30 20:37:00

    You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list. You may assume the two numbers d

  • [二分法]leetcode1201:丑数 Ⅲ (medium)2020-01-23 16:44:46

    题目: 题解: 二分法 小于等于数值n的丑数个数为:n/a+n/b+n/c-n/ab的最小公倍数-n/ac的最小公倍数-n/bc的最小公倍数+n/三者的最小公倍数。因此我们先求出ab、ac、bc、abc的最小公倍数,由于C++17已经将两个整数最小公倍数函数lcm(a,b)加入标准库中,所以我们可以很方便的调用这

  • 刷题之旅第8站,DVWA XSS stored (low,medium,high)2020-01-21 15:07:42

    一、什么是XSS stored XSS攻击是Web攻击中最常见的攻击方法之一,它是通过对网页注入可执行代码且成功地被浏览器 执行,达到攻击的目的,形成了一次有效XSS攻击,一旦攻击成功,它可以获取用户的联系人列表,然后向联系人发送虚假诈骗信息,可以删除用户的日志等等,有时候还和其他攻击方式

  • 【Leetcode Medium】1318. Minimum Flips to Make a OR b Equal to c2020-01-16 14:42:33

    原题链接 题目描述 Given 3 positives numbers a, b and c. Return the minimum flips required in some bits of a and b to make ( a OR b == c ). (bitwise OR operation). Flip operation consists of change any single bit 1 to 0 or change the bit 0 to 1 in their

  • dwva暴力破解-low,medium,high2019-12-19 19:58:23

    暴力破解   暴力破解是一种针对密码破解的方法,主要是使用枚举法,将密码逐个测试,直到找到真正的密码。一般暴力破解比较耗时。且需要好的字典。 一、将DVWA Security设置成low 1.先将连接设置设置为手动配置代理,端口号8080,将不使用代理清空。         2.在输入框随意输入用户

  • Medium高赞系列,如何正确的在Stack Overflow提问2019-11-15 09:01:40

    在我们写程序的时候,经常会遇到各色各样的问题,在国内,小伙伴们经常去知乎、CSDN、博客园、思否、安卓巴士等地方提问并获得答案。 这些地方汇集了很多优秀的、爱分享的国内资源。小编比较自豪的一件事情就是:当初学习dubbo期间,因为一个数据关闭错误一直找不到正确的解决方式,就顺手把

  • C++内存管理2019-11-07 17:54:39

                            参考:   https://www.cnblogs.com/findumars/p/5929831.html?utm_source=itdadao&utm_medium=referral

  • 练习题2019-10-20 15:03:56

    https://www.cnblogs.com/zhaodafa/p/9667045.html?utm_campaign=haruki&utm_content=note&utm_medium=reader_share&utm_source=qq#_label0_8

  • 面试2019-10-20 15:03:43

    https://www.cnblogs.com/zhaodafa/p/9667045.html?utm_campaign=haruki&utm_content=note&utm_medium=reader_share&utm_source=qq#_label0_8

  • #56合并区间medium2019-09-15 16:42:53

    code1: public int[][] merge(int[][] intervals) {         List<int[]> res = new ArrayList<>();         if (intervals == null || intervals.length == 0)             return res.toArray(new int[0][]);         // Arrays.sort(inte

  • #60第K个排列medium2019-09-15 16:40:16

    #60medium code1: class Solution {     public String getPermutation(int n, int k) {         List<Integer> num = new ArrayList<>();         for (int i = 1; i <= n; i++) num.add(i);         int[] factorial = new int[n];        

  • 【Leetcode】162. Find Peak Element[Medium]2019-09-08 15:37:15

    Description A peak element is an element that is greater than its neighbors. Given an input array nums, where nums[i] ≠ nums[i+1], find a peak element and return its index. The array may contain multiple peaks, in that case return the index to any one

  • leetcode 1-100 medium难度题目汇总2019-09-07 13:01:23

    写在前面 近半个月的整理, 终于完成了前一百题的easy和medium题目的分析

  • [前缀树]leetcode667:键值映射(medium)2019-09-07 09:40:06

    题目: 题解: 本题采用前缀树来解题,前缀树节点设有三个成员变量,sumval用来存储字符串前缀的val(前缀就是除去尾字符之前的字符叫前缀)以及相同的key要更新前缀的val,字符串尾字符的val就是记录字符串的val,next[26]表示每个节点值可以取到26个小写字母中的一个。这里我们用一个ha

  • (Medium) Shifting Letters - LeetCode2019-09-03 14:03:16

    Description: We have a string S of lowercase letters, and an integer array shifts. Call the shift of a letter, the next letter in the alphabet, (wrapping around so that 'z' becomes 'a').  For example, shift('a') = 'b�

  • [二叉搜索树]leetcode173:二叉搜索树迭代器(medium)2019-08-31 22:06:19

    题目: 题解: 本题规定了时间复杂度为O(h)而不是为O(n),所以我们用栈模拟中序遍历过程,将二叉排序树的左节点存入栈中,栈顶元素即为最小值。空间复杂度为O(1),直接返回栈顶元素就可以了。 思路: 仅仅将中序遍历最小值之前的节点压入栈中,当next时我们将栈顶元素取出即为最小值返回,

  • ARTS2019-08-28 20:04:12

    ARTS的初衷 Algorithm。主要是为了编程训练和学习。每周至少做一个 leetcode 的算法题(先从Easy开始,然后再Medium,最后才Hard)。进行编程训练,如果不训练你看再多的算法书,你依然不会做算法题,看完书后,你需要训练。关于做Leetcode的的优势,你可以看一下我在coolshell上的文章 Leetcode

  • 424. Longest Repeating Character Replacement - Medium2019-08-21 13:03:49

    Given a string s that consists of only uppercase English letters, you can perform at most k operations on that string. In one operation, you can choose any character of the string and change it to any other uppercase English character. Find the length o

  • leetcode 416 && 698. 分割等和子集   medium2019-08-17 17:01:32

    leetcode 416. 分割等和子集   medium           题目描述: 给定一个只包含正整数的非空数组。是否可以将这个数组分割成两个子集,使得两个子集的元素和相等。 注意: 每个数组中的元素不会超过 100 数组的大小不会超过 200 示例 1: 输入: [1, 5, 11, 5] 输出: true 解

  • 134. Gas Station (Medium)2019-08-12 22:07:53

    https://leetcode.com/problems/gas-station/ 非常经典的一道题。解这道题的思路基于一个数学定理: 如果一个数组的总和非负,那么一定可以找到一个起始位置,从他开始绕数组一圈,累加和一直都是非负的 有了这个定理,判断到底是否存在这样的解非常容易,只需要把全部的油耗情况计算出

  • 贪心 LeetCode 55. Jump Game (medium)2019-08-10 17:40:48

    【题目描述】 题目链接:点击这里 【思路分析】 贪心规律: 算法思路: 过程举例: class Solution { public: bool canJump(vector<int>& nums) { vector<int> index; //最远可跳至的位置 //计算index数组 for(int i=0;i<nums.size();i++) {

  • 17. Letter Combinations of a Phone Number - Medium2019-08-08 09:50:25

    Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telephone buttons) is given below. Note that 1 does not map to any letters. Exam

  • (Medium) Unique Paths LeetCode2019-08-05 11:57:08

      class Solution { public int uniquePaths(int m, int n) { if (m ==0||n ==0){ return 0; } int dp [][] = new int[m][n]; //first row scenario for(int i = 0;i<n; i++) {

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有