Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Analysis Interviews:AnalysisAnalystAnalyst IntegrationAnalyst IntegrationAnecdotalBusiness AnalystCompetency BasedCredit AnalystCrime Scene AnalystData AnalystEmotional IntelligenceEvent PlannerExecutive Business AnalysisExecutive Business DevelopmentFemale SecretaryFinancial AnalystGISGIS AnalysisGIS DateMarket Research AnalystPension ExaminerPhone ScreeningPre EmploymentPre Employment ScreeningRecruitment/Research AnalystResearch AnalystResearch OfficerSales AnalystSpatial DataStatic AnalysisStatics MeasuresStatisticsSystem Analysis
Copyright © 2018. All Rights Reserved
Analyst Integration Interview Question:
Can you please explain the difference between linked list and an array?
Submitted by: Administratorlinked list and array are two of the most important data structure in programming world. Most significant difference between them is that array stores its element at contiguous location while linked list stores its data anywhere in memory. This gives linked list enormous flexibility to expand itself because memory is always scattered. It's always possible that you wouldn't be able to create an array to store 1M integers but can do by using linked list because space is available but not as contiguous chunk. All other differences are result of this fact. For example you can search an element in array with O(1) time if you know the index but searching will take O(n) time in linked list. For more differences see the detailed answer.
Submitted by:
Submitted by:
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.