Questions tagged as 'lista-encadeada'

2
answers

What is a chained list?

I've been reading some materials and seen a lot if talking about threaded lists. I even saw the code sample (in C) below that tried to "illustrate" what was one. struct Node { int info; struct Node *proximo; }; What I would like to...
asked by 08.11.2016 / 12:17
2
answers

Binary search in linked list [closed]

How can I perform a binary search on a simple linked list with head? Also if it is possible to do this, if there is any special method. In the EP I can not count the number of elements in this list beforehand, I have to search and insert a cell...
asked by 26.11.2015 / 03:15
2
answers

Dynamic allocation and runtime of functions

When we use some of the C dynamic allocation functions (malloc, calloc, realloc etc) inside a function that is called by main, will the memory remain allocated at the end of the execution of this function or will it automatically be deallocated?...
asked by 17.09.2015 / 15:50
1
answer

What is head of the threaded list?

I do not understand what head or head ) of the list means, and what is the advantage in using it?     
asked by 08.12.2016 / 13:43
3
answers

Sort threaded list with method O (n * log (n))

I need to sort a linked list (own implementation, without using Java API) with a sort method that has complexity O (n * log (n)). Searching for methods that satisfy the condition found quicksort, however, it assumes random access to the elements...
asked by 02.02.2016 / 01:55
1
answer

Why should not iterate a hashmap?

I've been doing a project and one of my colleagues mentioned that iterating hashmaps is something to avoid and instead should use hashmap . However, I think the hashmap's versatility of being able to save strings as a key allows you to...
asked by 10.01.2018 / 21:25
2
answers

Placing and comparing dominoes in order in C, using list or not (if not)

The program asks you to check if you have the same dominoes (if you have at least one possibility of joining data 12 | 21) and asks to show an order that suits the basic rule of the dominoes (12 | 24 | 45 | 53); An accepted entry would be:...
asked by 05.05.2016 / 21:54
3
answers

Entity Framework - Update nested lists

I have the following schema in my DB MySql: Modelshavealistofstandard_imagesandeachstandard_imageshasastandard_regionslist.IneedtouseEntityFramework5.0.0.Ihaveatemplatewith3standard_imagesandeachonehas4standard_regions.Ineedtodoanupdateonthis...
asked by 10.06.2014 / 14:08
3
answers

Code to invert sequence of non-vowels ending with zero status

I'm implementing the decodificar function, which aims to call auxiliary functions to invert all non-vowel sequences. For example, if the word is "legal monsters", it will continue to "mortsnol segais". void inverterNvs(NO* elemento, NO*...
asked by 04.09.2017 / 18:34
1
answer

What's wrong with my threaded list?

I've implemented a linked list but when I enter 2 items, I remove the last one and add it again, for some reason it says the value is null. public class ListaDinamica<T> { private class Celula<E>{ E item; Ce...
asked by 09.09.2015 / 18:11