Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9133749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:32:29+00:00 2026-06-17T08:32:29+00:00

I am trying to solve this problem but couldnt come up with anything …

  • 0

I am trying to solve this problem but couldnt come up with anything …

we will name a number “aggregated number” if this number has the following attribute:
just like the Fibonacci numbers
1,1,2,3,5,8,13…..

the digits in the number can divided into several parts, and the later part is the sum of the former parts.

like 112358, because 1+1=2, 1+2=3, 2+3=5, 3+5=8
122436, because 12+24=36
1299111210, because 12+99=111, 99+111=210
112112224, because 112+112=224

Sorry for incomplete question we need to write to function to test whether a number is aggregated or not ?
any ideas please help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T08:32:29+00:00Added an answer on June 17, 2026 at 8:32 am

    If you’re stuck, try to break the problem out into simpler solvable chunks. For example to get you started:

    /**
     * Returns true if the provided number is an aggregated number
     *
     * @param potentialAggregatedNumber The number to check.
     */
    boolean isAggregated (potentialAggregatedNumber){
        for(numDigits=1; numDigits <= (potentialAggregatedNumber.length/2); numDigits++){
            if(isAggregatedForFirstNumberLength(potentialAggregatedNumber, numDigits) {
                return true;
            }
        }
        return false;
    }
    
    /**
      * Returns true if aggregated number when the first number has numDigits digits.
      *
      * @param potentialAggregatedNumber The number to check.
      * @param numDigits The number of digits the first sub-number should have.
      */
    boolean isAggregatedForFirstNumberLength(potentialAggregatedNumber, numDigits){
        //your code 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been trying to solve this problem for a number of days now but
I have been trying to solve this problem for a while, but couldn't with
I've been trying to solve this problem for quite sometime but I am having
I've been trying to solve this problem for a couple of hours but I
Trying to solve this problem . I would like to learn how the bootstrapper
I am trying to solve this problem http://www.spoj.pl/problems/PEBBMOV/ . I think I have the
I'm trying to solve this problem in a pure-functional way, without using set! .
I was trying to solve this problem - http://www.spoj.pl/problems/LISA/ I thought of Greedy initially,
I was trying to solve this problem on SPOJ (http://www.spoj.pl/problems/REC/) F(n) = a*F(n-1) +
I am trying to solve this problem. I have a series of SELECT statements

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.