SlideShare uma empresa Scribd logo
1 de 26
Listas Simplemente Enlazadas
struct moldenodo{
         int clave;
         struct moldenodo *proximo;
};

typedef struct moldenodo nodo;
typedef nodo *pnodo;

pnodo lista = null;
struct moldenodo{
                  int clave;
clave    };
                  struct moldenodo *proximo;




        proximo
pnodo CreaNodo(int dato){

         pnodo pn = NULL;
         pn = (pnodo) malloc(sizeof(nodo));
         if ( pn != NULL) {
                     pn->clave=dato;
                     pn->proximo=NULL;
         }
         return(pn);
}
pnodo CreaNodo(int dato){

PN            pnodo pn = NULL;
              pn = (pnodo) malloc(sizeof(nodo));
              if ( pn != NULL) {
                          pn->clave=dato;
                          pn->proximo=NULL;
              }
              return(pn);
     }
pnodo CreaNodo(int dato){
PN                    pnodo pn = NULL;
                      pn = (pnodo) malloc(sizeof(nodo));
                      if ( pn != NULL) {
                                  pn->clave=dato;
     clave            }
                                  pn->proximo=NULL;

                      return(pn);
             }
pnodo CreaNodo(int dato){
PN                   pnodo pn = NULL;
                     pn = (pnodo) malloc(sizeof(nodo));
                     if ( pn != NULL) {
                                 pn->clave=dato;
     dato            }
                                 pn->proximo=NULL;

                     return(pn);
            }
pnodo InsertarAlInicio(pnodo n)
lista          {
                        if(lista==NULL)
                                    lista=n;
                        else if (n != NULL) {
                                    n->proximo=lista;
        dato            }
                                    lista = n;

                         return (n);
               }
pnodo InsertarAlInicio(pnodo n)
n       lista       {
                             if(lista==NULL)
                                         lista=n;
                             else if (n != NULL) {
                                         n->proximo=lista;
dato2       dato1            }
                                         lista = n;

                              return (n);
                    }
pnodo InsertarAlInicio(pnodo n)
lista   n           {
                             if(lista==NULL)
                                         lista=n;
                             else if (n != NULL) {
                                         n->proximo=lista;
    dato2   dato1            }
                                         lista = n;

                              return (n);
                    }
pnodo Insertar(pnodo n)
               {
                 pnodo aux = lista;
                 if(lista==NULL){
lista    aux      printf("Lista Vacia, debe ingresar al incio");
                  InsertarAlInicio(n);
                  return n;
                 } else{
                    while(aux->proximo != NULL){
        dato              aux = aux->proximo;
                    }
                    aux->proximo = n;
                    n->proximo = NULL;
                 }
                 return n;
               }
pnodo Insertar(pnodo n)
              {
                pnodo aux = lista;
                if(lista==NULL){
lista   aux      printf("Lista Vacia, debe ingresar al incio");
                 InsertarAlInicio(n);
                 return n;
                } else{
                   while(aux->proximo != NULL){
                         aux = aux->proximo;
                   }
                   aux->proximo = n;
                   n->proximo = NULL;
                }
                return n;
              }
pnodo Insertar(pnodo n)
               {
                 pnodo aux = lista;
                 if(lista==NULL){
lista    aux      printf("Lista Vacia, debe ingresar al incio");
                  InsertarAlInicio(n);
                  return n;
                 } else{
                    while(aux->proximo != NULL){
        dato              aux = aux->proximo;
                    }
                    aux->proximo = n;
                    n->proximo = NULL;
                 }
                 return n;
               }
pnodo Insertar(pnodo n)
                            {
                              pnodo aux = lista;
                              if(lista==NULL){
                               printf("Lista Vacia, debe ingresar al incio");
lista aux                      InsertarAlInicio(n);
                               return n;
                              } else{
                                 while(aux->proximo != NULL){
                                       aux = aux->proximo;
Dato1       Dato2   Dato3        }
                                 aux->proximo = n;
                                 n->proximo = NULL;
                              }
                              return n;
                            }
pnodo Insertar(pnodo n)
                        {
                          pnodo aux = lista;
                          if(lista==NULL){
                           printf("Lista Vacia, debe ingresar al incio");
lista   aux                InsertarAlInicio(n);
                           return n;
                          } else{
                             while(aux->proximo != NULL){
                                   aux = aux->proximo;
Dato1   Dato2   Dato3        }
                             aux->proximo = n;
                             n->proximo = NULL;
                          }
                          return n;
                        }
pnodo Insertar(pnodo n)
                        {
                          pnodo aux = lista;
                          if(lista==NULL){
                           printf("Lista Vacia, debe ingresar al incio");
lista           aux        InsertarAlInicio(n);
                           return n;
                          } else{
                             while(aux->proximo != NULL){
                                   aux = aux->proximo;
Dato1   Dato2   Dato3        }
                             aux->proximo = n;
                             n->proximo = NULL;
                          }
                          return n;
                        }
pnodo Insertar(pnodo n)
                                     {
                                       pnodo aux = lista;
                                       if(lista==NULL){
                                        printf("Lista Vacia, debe ingresar al incio");
lista           aux                     InsertarAlInicio(n);
                                        return n;
                                       } else{
                                          while(aux->proximo != NULL){
                                                aux = aux->proximo;
Dato1   Dato2    Dato3       Dato4        }
                                          aux->proximo = n;
                                          n->proximo = NULL;
                                       }
                                       return n;
                                     }
                         n
p
                                    void Descartar(pnodo p){
                                             pnodo t=lista;
        Dato1                                if(lista==p) {
                                                    lista=p->proximo;
                                                    free(p);
lista t                                      } else {
                                                   while(t!= NULL)
                                                       if (t->proximo==p) {
                                                           t->proximo=p->proximo;
                                                          free(p);
Dato1       Dato2   Dato3   Dato4                       }
                                                        else
                                                            t=t->proximo;
                                             }
                                    }
p
                                        void Descartar(pnodo p){
                                                 pnodo t=lista;
        Dato1                                    if(lista==p) {
                                                        lista=p->proximo;
                                                        free(p);
t       p           lista                        } else {
                                                       while(t!= NULL)
                                                           if (t->proximo==p) {
                                                               t->proximo=p->proximo;
                                                              free(p);
Dato1       Dato2       Dato3   Dato4                       }
                                                            else
                                                                t=t->proximo;
                                                 }
                                        }
p
                            void Descartar(pnodo p){
                                     pnodo t=lista;
        Dato1                        if(lista==p) {
                                            lista=p->proximo;
                                            free(p);
    lista                            } else {
                                           while(t!= NULL)
                                               if (t->proximo==p) {
                                                   t->proximo=p->proximo;
                                                  free(p);
Dato2       Dato3   Dato4                       }
                                                else
                                                    t=t->proximo;
                                     }
                            }
p
                                    void Descartar(pnodo p){
                                             pnodo t=lista;
        Dato3                                if(lista==p) {
                                                    lista=p->proximo;
                                                    free(p);
t       lista                                } else {
                                                   while(t!= NULL)
                     p                                 if (t->proximo==p) {
                                                           t->proximo=p->proximo;
                                                          free(p);
Dato1       Dato2   Dato3   Dato4                       }
                                                        else
                                                            t=t->proximo;
                                             }
                                    }
p
                                    void Descartar(pnodo p){
                                             pnodo t=lista;
         Dato3                               if(lista==p) {
                                                    lista=p->proximo;
                                                    free(p);
 lista      t                                } else {
                     p                             while(t!= NULL)
                                                       if (t->proximo==p) {
                                                           t->proximo=p->proximo;
                                                          free(p);
Dato1       Dato2   Dato3   Dato4                       }
                                                        else
                                                            t=t->proximo;
                                             }
                                    }
p
                                    void Descartar(pnodo p){
                                             pnodo t=lista;
         Dato3                               if(lista==p) {
                                                    lista=p->proximo;
                                                    free(p);
 lista      t        p
                                             } else {
                                                   while(t!= NULL)
                                                       if (t->proximo==p) {
                                                           t->proximo=p->proximo;
                                                          free(p);
Dato1       Dato2   Dato3   Dato4                       }
                                                        else
                                                            t=t->proximo;
                                             }
                                    }
p
                                        void Descartar(pnodo p){
                                                 pnodo t=lista;
         Dato3                                   if(lista==p) {
                                                        lista=p->proximo;
                                                        free(p);
 lista                      t                    } else {
                     p                                 while(t!= NULL)
                                                           if (t->proximo==p) {
                                                               t->proximo=p->proximo;
                                                              free(p);
Dato1       Dato2   Dato3       Dato4                       }
                                                            else
                                                                t=t->proximo;
                                                 }
                                        }
p
                             void Descartar(pnodo p){
                                      pnodo t=lista;
         Dato3                        if(lista==p) {
                                             lista=p->proximo;
                                             free(p);
 lista               t                } else {
                                            while(t!= NULL)
                                                if (t->proximo==p) {
                                                    t->proximo=p->proximo;
                                                   free(p);
Dato1        Dato2   Dato4                       }
                                                 else
                                                     t=t->proximo;
                                      }
                             }
Hacer Código de Buscar y
        ejemplo

Mais conteúdo relacionado

Último

Considere a seguinte situação fictícia: Durante uma reunião de equipe em uma...
Considere a seguinte situação fictícia:  Durante uma reunião de equipe em uma...Considere a seguinte situação fictícia:  Durante uma reunião de equipe em uma...
Considere a seguinte situação fictícia: Durante uma reunião de equipe em uma...azulassessoria9
 
PROVA - ESTUDO CONTEMPORÂNEO E TRANSVERSAL: COMUNICAÇÃO ASSERTIVA E INTERPESS...
PROVA - ESTUDO CONTEMPORÂNEO E TRANSVERSAL: COMUNICAÇÃO ASSERTIVA E INTERPESS...PROVA - ESTUDO CONTEMPORÂNEO E TRANSVERSAL: COMUNICAÇÃO ASSERTIVA E INTERPESS...
PROVA - ESTUDO CONTEMPORÂNEO E TRANSVERSAL: COMUNICAÇÃO ASSERTIVA E INTERPESS...azulassessoria9
 
Bullying - Atividade com caça- palavras
Bullying   - Atividade com  caça- palavrasBullying   - Atividade com  caça- palavras
Bullying - Atividade com caça- palavrasMary Alvarenga
 
PROVA - ESTUDO CONTEMPORÂNEO E TRANSVERSAL: LEITURA DE IMAGENS, GRÁFICOS E MA...
PROVA - ESTUDO CONTEMPORÂNEO E TRANSVERSAL: LEITURA DE IMAGENS, GRÁFICOS E MA...PROVA - ESTUDO CONTEMPORÂNEO E TRANSVERSAL: LEITURA DE IMAGENS, GRÁFICOS E MA...
PROVA - ESTUDO CONTEMPORÂNEO E TRANSVERSAL: LEITURA DE IMAGENS, GRÁFICOS E MA...azulassessoria9
 
análise de redação completa - Dissertação
análise de redação completa - Dissertaçãoanálise de redação completa - Dissertação
análise de redação completa - DissertaçãoMaiteFerreira4
 
o ciclo do contato Jorge Ponciano Ribeiro.pdf
o ciclo do contato Jorge Ponciano Ribeiro.pdfo ciclo do contato Jorge Ponciano Ribeiro.pdf
o ciclo do contato Jorge Ponciano Ribeiro.pdfCamillaBrito19
 
"É melhor praticar para a nota" - Como avaliar comportamentos em contextos de...
"É melhor praticar para a nota" - Como avaliar comportamentos em contextos de..."É melhor praticar para a nota" - Como avaliar comportamentos em contextos de...
"É melhor praticar para a nota" - Como avaliar comportamentos em contextos de...Rosalina Simão Nunes
 
Libras Jogo da memória em LIBRAS Memoria
Libras Jogo da memória em LIBRAS MemoriaLibras Jogo da memória em LIBRAS Memoria
Libras Jogo da memória em LIBRAS Memorialgrecchi
 
Pedologia- Geografia - Geologia - aula_01.pptx
Pedologia- Geografia - Geologia - aula_01.pptxPedologia- Geografia - Geologia - aula_01.pptx
Pedologia- Geografia - Geologia - aula_01.pptxleandropereira983288
 
GÊNERO TEXTUAL - TIRINHAS - Charges - Cartum
GÊNERO TEXTUAL - TIRINHAS - Charges - CartumGÊNERO TEXTUAL - TIRINHAS - Charges - Cartum
GÊNERO TEXTUAL - TIRINHAS - Charges - CartumAugusto Costa
 
CIÊNCIAS HUMANAS - ENSINO MÉDIO. 2024 2 bimestre
CIÊNCIAS HUMANAS - ENSINO MÉDIO. 2024 2 bimestreCIÊNCIAS HUMANAS - ENSINO MÉDIO. 2024 2 bimestre
CIÊNCIAS HUMANAS - ENSINO MÉDIO. 2024 2 bimestreElianeElika
 
Dicionário de Genealogia, autor Gilber Rubim Rangel
Dicionário de Genealogia, autor Gilber Rubim RangelDicionário de Genealogia, autor Gilber Rubim Rangel
Dicionário de Genealogia, autor Gilber Rubim RangelGilber Rubim Rangel
 
Manual da CPSA_1_Agir com Autonomia para envio
Manual da CPSA_1_Agir com Autonomia para envioManual da CPSA_1_Agir com Autonomia para envio
Manual da CPSA_1_Agir com Autonomia para envioManuais Formação
 
Ficha de trabalho com palavras- simples e complexas.pdf
Ficha de trabalho com palavras- simples e complexas.pdfFicha de trabalho com palavras- simples e complexas.pdf
Ficha de trabalho com palavras- simples e complexas.pdfFtimaMoreira35
 
Nós Propomos! " Pinhais limpos, mundo saudável"
Nós Propomos! " Pinhais limpos, mundo saudável"Nós Propomos! " Pinhais limpos, mundo saudável"
Nós Propomos! " Pinhais limpos, mundo saudável"Ilda Bicacro
 
JOGO FATO OU FAKE - ATIVIDADE LUDICA(1).pptx
JOGO FATO OU FAKE - ATIVIDADE LUDICA(1).pptxJOGO FATO OU FAKE - ATIVIDADE LUDICA(1).pptx
JOGO FATO OU FAKE - ATIVIDADE LUDICA(1).pptxTainTorres4
 
Discurso Direto, Indireto e Indireto Livre.pptx
Discurso Direto, Indireto e Indireto Livre.pptxDiscurso Direto, Indireto e Indireto Livre.pptx
Discurso Direto, Indireto e Indireto Livre.pptxferreirapriscilla84
 
Rota das Ribeiras Camp, Projeto Nós Propomos!
Rota das Ribeiras Camp, Projeto Nós Propomos!Rota das Ribeiras Camp, Projeto Nós Propomos!
Rota das Ribeiras Camp, Projeto Nós Propomos!Ilda Bicacro
 

Último (20)

Considere a seguinte situação fictícia: Durante uma reunião de equipe em uma...
Considere a seguinte situação fictícia:  Durante uma reunião de equipe em uma...Considere a seguinte situação fictícia:  Durante uma reunião de equipe em uma...
Considere a seguinte situação fictícia: Durante uma reunião de equipe em uma...
 
PROVA - ESTUDO CONTEMPORÂNEO E TRANSVERSAL: COMUNICAÇÃO ASSERTIVA E INTERPESS...
PROVA - ESTUDO CONTEMPORÂNEO E TRANSVERSAL: COMUNICAÇÃO ASSERTIVA E INTERPESS...PROVA - ESTUDO CONTEMPORÂNEO E TRANSVERSAL: COMUNICAÇÃO ASSERTIVA E INTERPESS...
PROVA - ESTUDO CONTEMPORÂNEO E TRANSVERSAL: COMUNICAÇÃO ASSERTIVA E INTERPESS...
 
Bullying - Atividade com caça- palavras
Bullying   - Atividade com  caça- palavrasBullying   - Atividade com  caça- palavras
Bullying - Atividade com caça- palavras
 
PROVA - ESTUDO CONTEMPORÂNEO E TRANSVERSAL: LEITURA DE IMAGENS, GRÁFICOS E MA...
PROVA - ESTUDO CONTEMPORÂNEO E TRANSVERSAL: LEITURA DE IMAGENS, GRÁFICOS E MA...PROVA - ESTUDO CONTEMPORÂNEO E TRANSVERSAL: LEITURA DE IMAGENS, GRÁFICOS E MA...
PROVA - ESTUDO CONTEMPORÂNEO E TRANSVERSAL: LEITURA DE IMAGENS, GRÁFICOS E MA...
 
análise de redação completa - Dissertação
análise de redação completa - Dissertaçãoanálise de redação completa - Dissertação
análise de redação completa - Dissertação
 
o ciclo do contato Jorge Ponciano Ribeiro.pdf
o ciclo do contato Jorge Ponciano Ribeiro.pdfo ciclo do contato Jorge Ponciano Ribeiro.pdf
o ciclo do contato Jorge Ponciano Ribeiro.pdf
 
"É melhor praticar para a nota" - Como avaliar comportamentos em contextos de...
"É melhor praticar para a nota" - Como avaliar comportamentos em contextos de..."É melhor praticar para a nota" - Como avaliar comportamentos em contextos de...
"É melhor praticar para a nota" - Como avaliar comportamentos em contextos de...
 
Libras Jogo da memória em LIBRAS Memoria
Libras Jogo da memória em LIBRAS MemoriaLibras Jogo da memória em LIBRAS Memoria
Libras Jogo da memória em LIBRAS Memoria
 
Pedologia- Geografia - Geologia - aula_01.pptx
Pedologia- Geografia - Geologia - aula_01.pptxPedologia- Geografia - Geologia - aula_01.pptx
Pedologia- Geografia - Geologia - aula_01.pptx
 
GÊNERO TEXTUAL - TIRINHAS - Charges - Cartum
GÊNERO TEXTUAL - TIRINHAS - Charges - CartumGÊNERO TEXTUAL - TIRINHAS - Charges - Cartum
GÊNERO TEXTUAL - TIRINHAS - Charges - Cartum
 
CIÊNCIAS HUMANAS - ENSINO MÉDIO. 2024 2 bimestre
CIÊNCIAS HUMANAS - ENSINO MÉDIO. 2024 2 bimestreCIÊNCIAS HUMANAS - ENSINO MÉDIO. 2024 2 bimestre
CIÊNCIAS HUMANAS - ENSINO MÉDIO. 2024 2 bimestre
 
Dicionário de Genealogia, autor Gilber Rubim Rangel
Dicionário de Genealogia, autor Gilber Rubim RangelDicionário de Genealogia, autor Gilber Rubim Rangel
Dicionário de Genealogia, autor Gilber Rubim Rangel
 
Manual da CPSA_1_Agir com Autonomia para envio
Manual da CPSA_1_Agir com Autonomia para envioManual da CPSA_1_Agir com Autonomia para envio
Manual da CPSA_1_Agir com Autonomia para envio
 
Ficha de trabalho com palavras- simples e complexas.pdf
Ficha de trabalho com palavras- simples e complexas.pdfFicha de trabalho com palavras- simples e complexas.pdf
Ficha de trabalho com palavras- simples e complexas.pdf
 
Nós Propomos! " Pinhais limpos, mundo saudável"
Nós Propomos! " Pinhais limpos, mundo saudável"Nós Propomos! " Pinhais limpos, mundo saudável"
Nós Propomos! " Pinhais limpos, mundo saudável"
 
JOGO FATO OU FAKE - ATIVIDADE LUDICA(1).pptx
JOGO FATO OU FAKE - ATIVIDADE LUDICA(1).pptxJOGO FATO OU FAKE - ATIVIDADE LUDICA(1).pptx
JOGO FATO OU FAKE - ATIVIDADE LUDICA(1).pptx
 
Discurso Direto, Indireto e Indireto Livre.pptx
Discurso Direto, Indireto e Indireto Livre.pptxDiscurso Direto, Indireto e Indireto Livre.pptx
Discurso Direto, Indireto e Indireto Livre.pptx
 
CINEMATICA DE LOS MATERIALES Y PARTICULA
CINEMATICA DE LOS MATERIALES Y PARTICULACINEMATICA DE LOS MATERIALES Y PARTICULA
CINEMATICA DE LOS MATERIALES Y PARTICULA
 
Bullying, sai pra lá
Bullying,  sai pra láBullying,  sai pra lá
Bullying, sai pra lá
 
Rota das Ribeiras Camp, Projeto Nós Propomos!
Rota das Ribeiras Camp, Projeto Nós Propomos!Rota das Ribeiras Camp, Projeto Nós Propomos!
Rota das Ribeiras Camp, Projeto Nós Propomos!
 

Destaque

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 

Destaque (20)

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 

Listas simplemente enlazadas

  • 2. struct moldenodo{ int clave; struct moldenodo *proximo; }; typedef struct moldenodo nodo; typedef nodo *pnodo; pnodo lista = null;
  • 3. struct moldenodo{ int clave; clave }; struct moldenodo *proximo; proximo
  • 4. pnodo CreaNodo(int dato){ pnodo pn = NULL; pn = (pnodo) malloc(sizeof(nodo)); if ( pn != NULL) { pn->clave=dato; pn->proximo=NULL; } return(pn); }
  • 5. pnodo CreaNodo(int dato){ PN pnodo pn = NULL; pn = (pnodo) malloc(sizeof(nodo)); if ( pn != NULL) { pn->clave=dato; pn->proximo=NULL; } return(pn); }
  • 6. pnodo CreaNodo(int dato){ PN pnodo pn = NULL; pn = (pnodo) malloc(sizeof(nodo)); if ( pn != NULL) { pn->clave=dato; clave } pn->proximo=NULL; return(pn); }
  • 7. pnodo CreaNodo(int dato){ PN pnodo pn = NULL; pn = (pnodo) malloc(sizeof(nodo)); if ( pn != NULL) { pn->clave=dato; dato } pn->proximo=NULL; return(pn); }
  • 8. pnodo InsertarAlInicio(pnodo n) lista { if(lista==NULL) lista=n; else if (n != NULL) { n->proximo=lista; dato } lista = n; return (n); }
  • 9. pnodo InsertarAlInicio(pnodo n) n lista { if(lista==NULL) lista=n; else if (n != NULL) { n->proximo=lista; dato2 dato1 } lista = n; return (n); }
  • 10. pnodo InsertarAlInicio(pnodo n) lista n { if(lista==NULL) lista=n; else if (n != NULL) { n->proximo=lista; dato2 dato1 } lista = n; return (n); }
  • 11. pnodo Insertar(pnodo n) { pnodo aux = lista; if(lista==NULL){ lista aux printf("Lista Vacia, debe ingresar al incio"); InsertarAlInicio(n); return n; } else{ while(aux->proximo != NULL){ dato aux = aux->proximo; } aux->proximo = n; n->proximo = NULL; } return n; }
  • 12. pnodo Insertar(pnodo n) { pnodo aux = lista; if(lista==NULL){ lista aux printf("Lista Vacia, debe ingresar al incio"); InsertarAlInicio(n); return n; } else{ while(aux->proximo != NULL){ aux = aux->proximo; } aux->proximo = n; n->proximo = NULL; } return n; }
  • 13. pnodo Insertar(pnodo n) { pnodo aux = lista; if(lista==NULL){ lista aux printf("Lista Vacia, debe ingresar al incio"); InsertarAlInicio(n); return n; } else{ while(aux->proximo != NULL){ dato aux = aux->proximo; } aux->proximo = n; n->proximo = NULL; } return n; }
  • 14. pnodo Insertar(pnodo n) { pnodo aux = lista; if(lista==NULL){ printf("Lista Vacia, debe ingresar al incio"); lista aux InsertarAlInicio(n); return n; } else{ while(aux->proximo != NULL){ aux = aux->proximo; Dato1 Dato2 Dato3 } aux->proximo = n; n->proximo = NULL; } return n; }
  • 15. pnodo Insertar(pnodo n) { pnodo aux = lista; if(lista==NULL){ printf("Lista Vacia, debe ingresar al incio"); lista aux InsertarAlInicio(n); return n; } else{ while(aux->proximo != NULL){ aux = aux->proximo; Dato1 Dato2 Dato3 } aux->proximo = n; n->proximo = NULL; } return n; }
  • 16. pnodo Insertar(pnodo n) { pnodo aux = lista; if(lista==NULL){ printf("Lista Vacia, debe ingresar al incio"); lista aux InsertarAlInicio(n); return n; } else{ while(aux->proximo != NULL){ aux = aux->proximo; Dato1 Dato2 Dato3 } aux->proximo = n; n->proximo = NULL; } return n; }
  • 17. pnodo Insertar(pnodo n) { pnodo aux = lista; if(lista==NULL){ printf("Lista Vacia, debe ingresar al incio"); lista aux InsertarAlInicio(n); return n; } else{ while(aux->proximo != NULL){ aux = aux->proximo; Dato1 Dato2 Dato3 Dato4 } aux->proximo = n; n->proximo = NULL; } return n; } n
  • 18. p void Descartar(pnodo p){ pnodo t=lista; Dato1 if(lista==p) { lista=p->proximo; free(p); lista t } else { while(t!= NULL) if (t->proximo==p) { t->proximo=p->proximo; free(p); Dato1 Dato2 Dato3 Dato4 } else t=t->proximo; } }
  • 19. p void Descartar(pnodo p){ pnodo t=lista; Dato1 if(lista==p) { lista=p->proximo; free(p); t p lista } else { while(t!= NULL) if (t->proximo==p) { t->proximo=p->proximo; free(p); Dato1 Dato2 Dato3 Dato4 } else t=t->proximo; } }
  • 20. p void Descartar(pnodo p){ pnodo t=lista; Dato1 if(lista==p) { lista=p->proximo; free(p); lista } else { while(t!= NULL) if (t->proximo==p) { t->proximo=p->proximo; free(p); Dato2 Dato3 Dato4 } else t=t->proximo; } }
  • 21. p void Descartar(pnodo p){ pnodo t=lista; Dato3 if(lista==p) { lista=p->proximo; free(p); t lista } else { while(t!= NULL) p if (t->proximo==p) { t->proximo=p->proximo; free(p); Dato1 Dato2 Dato3 Dato4 } else t=t->proximo; } }
  • 22. p void Descartar(pnodo p){ pnodo t=lista; Dato3 if(lista==p) { lista=p->proximo; free(p); lista t } else { p while(t!= NULL) if (t->proximo==p) { t->proximo=p->proximo; free(p); Dato1 Dato2 Dato3 Dato4 } else t=t->proximo; } }
  • 23. p void Descartar(pnodo p){ pnodo t=lista; Dato3 if(lista==p) { lista=p->proximo; free(p); lista t p } else { while(t!= NULL) if (t->proximo==p) { t->proximo=p->proximo; free(p); Dato1 Dato2 Dato3 Dato4 } else t=t->proximo; } }
  • 24. p void Descartar(pnodo p){ pnodo t=lista; Dato3 if(lista==p) { lista=p->proximo; free(p); lista t } else { p while(t!= NULL) if (t->proximo==p) { t->proximo=p->proximo; free(p); Dato1 Dato2 Dato3 Dato4 } else t=t->proximo; } }
  • 25. p void Descartar(pnodo p){ pnodo t=lista; Dato3 if(lista==p) { lista=p->proximo; free(p); lista t } else { while(t!= NULL) if (t->proximo==p) { t->proximo=p->proximo; free(p); Dato1 Dato2 Dato4 } else t=t->proximo; } }
  • 26. Hacer Código de Buscar y ejemplo