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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:43:29+00:00 2026-06-12T04:43:29+00:00

not sure if this is a valid question though, but here it goes. I’ve

  • 0

not sure if this is a valid question though, but here it goes. I’ve had this doubts when it comes to different lists(linkedList, queues, stacks, etc.) and recursion algorithms. I just don’t really understand when should I use them or why. I know how to implement them, but I’m not really sure why should I use a list instead of a regular array or why should a recursion be done instead of a for. I’m about to graduate in 1 1/2 years and I don’t wanna go look for a job without knowing this.

Thanks in advance and if you could give me an example of a problem where I should use any of them, I would greatly appreciate it

  • 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-12T04:43:31+00:00Added an answer on June 12, 2026 at 4:43 am

    Recursion and iteration are equivalent in terms of “what they can do”. The reason you would use recursion instead of iteration is that it simplifies how to write certain algorithms. For example, traversing a binary tree recursively produces clearer code than trying to do it iteratively; writing quicksort recursively is easier and cleaner than doing it iteratively. Recursion is simply the act of utilizing the program stack to store state; you can convert any recursive algorithm to its iterative counterpart by storing the stack yourself. I’d suggest you work with a language like Racket for a while. It will get this into your head far better than my words can.

    You would generally use a list instead of an array where frequent deletions were needed, and you don’t need to access specific elements often. Deletion from an array is an O(n) operation as everything after the deleted element needs to be shifted one index to the left. Queues are not necessarily list structures, they can be represented utilizing arrays. Queues and Stacks are useful in many algorithms, such as breadth and depth-first graph searches. I’d suggest you grab a data structures and algorithms book for this, having the algorithms illustrate why certain data structures are useful will be invaluable.

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

Sidebar

Related Questions

I'm not sure this question is appropriate here but I hope I could get
Not sure this is possible, but looking to write a script that would return
I'm not sure this is even possible but I know if it is, the
I'm not sure this is possible, but in ruby, you can dynamically call a
I'm not sure this is possible, but is there a syntax to be used
I know, poorly worded question not sure how else to ask though. I always
This is not a question specific about some javascript detail but I'm looking for
Not sure this is a known issue. I’m using VS2012 RC (Ultimate), and Win8
Disclaimer: not sure this is WordPress related or not. I'm following a simple tutorial
I'm not sure this is the right forum if it's not please feel free

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.