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 8163861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:09:45+00:00 2026-06-06T19:09:45+00:00

Question from an exam: Given a linked list with unknown size n , where

  • 0

Question from an exam:

  1. Given a linked list with unknown size n, where 3 divides n, how can we print the middle group of elements (e.g. between 1/3 and 2/3) of the linked list, using only 3 pointers, without counters ?
  2. How can we do that with only two pointers?

Remark: we cannot go left, only right!

Couldn’t come up with an answer that doesn’t involve counters, any suggestions?

  • 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-06T19:09:46+00:00Added an answer on June 6, 2026 at 7:09 pm

    Try to imagine the pointers as pickup heads on a tape. You start them all at the beginning, but then you move them at different speeds (hint, those speeds are multiple of fractions of 1/3 to each other). Now think about where the slower pointers are, when the fastest moving pointer has reached the end.

    Now how to make the pointers move like that, even if you can only increment and can’t to multiplication or division. Think about how a mechanical counter carries over its digits.

    And how to do it with only two pointers: Think about what you can do after you’ve reached the starting position: Place the fast pointer at the position of the slow pointer and repeat.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well, this is another question taken from this practice exam that was given to
Whilst doing exam revision I am having trouble answering the following question from the
While studying for a Functional Programming exam, I came across the following question from
Full Question: From a child table linked to a row in its grandparent table
This is a question from PHP zend exam, Using flock() to lock a stream
This is another exam related question. How can I use the AssemblyName class to
NOTE: THIS IS NOT HOMEWORK IT IS FROM A PRACTICE EXAM GIVEN TO US
This is a question from recent GATE entrance exam. A process executes the code
Question from certification exam: You use Microsoft Visual Studio 2010 and Microsoft .NET Framework
The full question from our sample exam paper: Explain by highlighting the relevant parts

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.