Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Well, I would assume if the party just spams lesser restoration before a long rest they would have all their spells back and wastes nothing? That is assuming they have a spellcaster with lesser restoration prepared and still have slots at the end of day.