Empresa engajada
How to find midpoint of a linked list.
Sigiloso
Take two pointers: t1,t2; node t1,t2; t1=head; t2=head; While(t1!=null){ t1=t1->next; t1=t1->next; t2=t2->next; } The moment t1 reaches the end, t2 will at the middle of linklist.
Fique por dentro de todas as oportunidades e dicas internas seguindo as empresas de seus sonhos.
Comece a buscar vagas para receber atualizações e recomendações personalizadas.