Arts punch week 10

  • Algorithm. Mainly to program training and learning.  At least a week to do a leetcode algorithm problems (start Easy to start, then Medium, and finally Hard). Training program, if you do not train your book look more algorithms, you still will not do arithmetic problems, after reading the book, you need to train. Leetcode do about the advantages, you can look at my article on coolshell Leetcode training program - the cool shell - CoolShell.

  • Review: mainly to learn English, if your English is not, you basically missed the technical expert.  So, you need to read and review at least an English technical articles, my favorite place to go is http://Medium.com (need a ladder)  , and each company's technology blog, such as Netflix's.

  • Tip: mainly to review and summarize the knowledge that you are often encountered at work.  Learning at least one technical skills. Your problems at work, bit by bit knowledge stepped pit, learning.

  • Share: mainly to build your influence, can output values.  Share ideas and think there is a technical article.

Algorithm:

   Gives a 32-bit signed integer, you need this integer number on each inverted.

Example 1:

Input: 123
Output: 321

 Example 2:

Input: -123
Output: -321

Example 3:

Input: 120
Output: 21

Note:

Suppose we have an environment can only store a 32-bit signed integer, then the value in the range [-231 231--1]. Please According to this hypothesis, if integer overflow after reverse it returns 0.

class Solution {
    public static int reverse(int x) {
        int rev = 0;
        while(x != 0){
            int pop = x % 10;
            x /= 10;
            if(rev > Integer.MAX_VALUE/10 || rev == Integer.MAX_VALUE/10 && pop > 7){
                return 0;
            }
            if(rev < Integer.MIN_VALUE/10 || rev == Integer.MIN_VALUE/10 && pop < -8){
                return 0;
            }
            rev = rev * 10 + pop;
        }
        return rev;
    }
}

Review

https://docs.spring.io/spring/docs/current/spring-framework-reference/web-reactive.html#webflux-fn

spring introduction to request routing.

Share: https: //mp.weixin.qq.com/s/Dc5DwKVgt1p6MC4Ss5v04Q articles on design rights.

tips: recent work no deadline, so work always follow God, their future work must set deadline.

 

Guess you like

Origin www.cnblogs.com/prader6/p/11072758.html