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

  • Home
  • SEARCH
  • 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 3873704
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:04:03+00:00 2026-05-19T22:04:03+00:00

I am doing an assignment for school and I’m not sure how to check

  • 0

I am doing an assignment for school and I’m not sure how to check if my linked list is full

I have

public boolean isFull()
{
    return back == null;
}

But I’m initializing both for null at the beginning so if the list is empty, this method would return true too.

I was thinking maybe

public boolean isFull()
{
     if(!isEmpty())
     {
        return back == null:
     }
}

What do you think??

The linked list should not have more than 7 items I forgot to mention that.

  • 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-05-19T22:04:04+00:00Added an answer on May 19, 2026 at 10:04 pm

    There’s no such concept as a “full” linked list, unless you’ve got a specific implementation which has an upper bound for size. Generally linked lists can grow as long as you want them to.

    EDIT: Okay, now you’ve actually explained the aim – I would personally keep a count with the linked list. Many implementations use this so that you can access the size in O(1) complexity. Normally to find the size of a “vanilla” linked list you start at the head of the list and iterate over it, incrementing a count until you reach the tail. That’s an O(n) operation. Not too bad for 7 elements, but a pain for a million. Keeping a separate count is easy and cheap.

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

Sidebar

Related Questions

I have this school assignment that I've been working on and am totally stumped
I am doing some C programming for school and I have found myself reusing
I'm doing another Java project for my class. In this assignment, we have to
I am doing a assignment about this. For Eaxmple: I have a message (String),
I am doing this assignment, make a program that solves sudoku. I have a
Is there any way of doing parallel assignment in C++? Currently, the below compiles
I'm doing a basic homework assignment which looks like this: While input <> -1
This isn't a school assignment or anything, but I realize it's a mostly academic
I'm working on an assignment for school, and am trying something beyond for extra
I'm writing a little genetic algorithm in Java, as a school assignment. Up until

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.