原文:[LeetCode] 829. Consecutive Numbers Sum 連續數字之和

Given a positive integer N , how many ways can we write it as a sum ofconsecutive positive integers Example : Example : Example : Note: lt N lt . 這道題給了一個正整數N,問N能寫成多少種連續正整數之和,比如 可以寫成 ,或者 。這道題其實不好做,因為沒 ...

2019-09-26 23:54 2 1051 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM