Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use java on Sundays

2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report