I want to know the answer to the following question:
What are Buddhism and Jainism regarded as in relation to religion and philosophy?
All the background I'm provided with is that "While Buddhism and Jainism are considered distinct philosophies and religions, some heterodox traditions such as Cārvāka are often considered as distinct schools within Hindu philosophy.". Is that enough to answer the question?