## Sum Of Digit Of A Number Using Recursion Through Java Programming

In this post, I will discuss Sum Of Digit Of A Number Using Recursion through Java Programming. Given a number, we need to find sum of its digits using recursion. Examples: Now, the step by step process for a better…

## Write A Program To Check Entered Number Is A Spy Number Or Not Through Java Program

In this post I am going to discuss a program called, Entered Number A Spy Number Or Not Through Java Program. What is a Spy Number? When you enter a natural number like 1124 then sum up its digit is…

## Program to convert the given number of days in terms of Years, Weeks and Days Using Java

In this post, we are going to calculate the Years, Weeks and Days by inputting a number of days, which means convert the given number of days in terms of years, weeks and days using Java. Example Of Days In terms Of…

## Write a program to maximize the cost of removing all occurrences of substrings “ab” and “ba”.

Suppose a string S and integers P and Q, which denotes the cost of removal of substrings “ab” and “ba” respectively from S. So, the task is to find the maximum cost of removing all occurrences of substrings “ab” and “ba”. Take an example: How to solve this problem? This problem can be solved by using…