Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use java on Sundays

Shulou Source: shulou.com Published: 2022-06-01 01:04:59 11月06日 Update

The editor will share with you how to use java on Sundays. I hope you will get something after reading this article. Let's discuss it together.

The following information is known, of course, you might as well verify it yourself.

January 1st, 1900 is Monday.

Thirty days in mid-September

Four sixty one is the same.

The rest is 31.

Except for February disunity.

28 balance all the year round

Add an extra day in a leap year.

A leap year is a year that is divisible by 4 but not by 100, or a year that is divisible by 400.

In the twentieth century (January 1, 1901 to December 31, 2000), how many months was Sunday on the 1st of the month?

System.out.println (maximumPathSum (0,0))

Analysis:

In fact, it is equivalent to putting an array into a triangle, first calculating the position in the array based on the rows and columns. Calculate the bottom first, and find the maximum value by recursive upward. The left here is equivalent to the path on his left, and right is equivalent to the path on his right.

After reading this article, I believe you have a certain understanding of "how to use java on Sundays". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Tags: Week year array article path leap year maximum same triangle location information right balance over year round day to day more maximum knowledge end Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Linux Redmi Shulou Information Apple