2020

    浙江省赛 Peak ZOJ 4024

    The most important is to consider all the situations that doesn't make a peak.

    01 Package 背包 Dynamic Programming

    I've been studied 01 Package for so many times. But I keep forgetting it. It costs me so many energy every time I learn, especially for the optimization of space complexity. So I take notes this time.

    LeetCode_Single-Number

    This is bit XOR Operation.

    LeetCode-Container With Most Water

    If we combine the left search with the right search, we need to make the lines with shorter height move.

    LeetCode-ZigZag Conversion

    We can simulate the order of the place order. Store them in a matrix and then combine the answer string.

    LeetCode-Longest Substring Without Repeating Characters

    Given a string s, find the length of the longest substring without repeating characters.

    Whether key value in MAP exists

    Normally, if I want to find whether the key exists in map STL(C++), the first thing come up to my mind is if(map1[key1]). However, this is wrong, because if there is no key equals to key1, map1[key1] will return 0 and if there is a key1 but its value is 0, then it will also return 0; So this method is not feasible.

    How to encrypt your post

    Sometimes we want to write something that we don't want all the web users to read. And the way we add password at is no safe. So we can use hexo plugin hexo-blog-encrypt to set password for our post.


TOP
COMMENT
made with ❤️ by o_oyao
©o_oyao 2019-2024

|