[問題] 請問遞迴次數太多造成StackOverflowError何解?
Exception in thread "main" java.lang.StackOverflowError
我跑資料量小都沒問題,
資料量大一點就發現遞迴次數太多造成上面錯誤…
請教各位前輩有何解決辦法?
很急><
--
How happy is the blameless vestal's lot!
The world forgetting, by the world forgot.
Eternal sunshine of the spotless mind!
Each pray'r accepted, and each wish resign'd;
http://shiami.blogspot.com/
- Alexander Pope, Eloisa to Abelard, 207-210
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 211.74.254.213
推
07/01 00:35, , 1F
07/01 00:35, 1F
推
07/01 00:48, , 2F
07/01 00:48, 2F
→
07/01 00:49, , 3F
07/01 00:49, 3F
→
07/01 00:54, , 4F
07/01 00:54, 4F
推
07/01 02:49, , 5F
07/01 02:49, 5F
推
07/01 08:53, , 6F
07/01 08:53, 6F
→
07/01 16:47, , 7F
07/01 16:47, 7F
→
07/01 16:52, , 8F
07/01 16:52, 8F
推
07/02 13:05, , 9F
07/02 13:05, 9F
推
07/02 13:07, , 10F
07/02 13:07, 10F
推
07/02 16:25, , 11F
07/02 16:25, 11F
→
07/02 16:31, , 12F
07/02 16:31, 12F
推
07/02 22:57, , 13F
07/02 22:57, 13F
推
07/02 22:59, , 14F
07/02 22:59, 14F