Questions tagged as 'lista'

1
answer

How to break a list and transform into array in Python?

In case, I want to transform a list of a column into a 3x3 array in numerical order: lista =([[1], [2], [3], [4], [5], [6], [7], [8], [9]]) Being the expected result: ([[7 8 9] [4 5 6] [1 2 3]])...
asked by 16.04.2018 / 03:49
1
answer

How to add an element at the end of a linked list

I need to add an element at the end of a linked list, I made the method asking it to add as if it were an initial element if the list is empty (is working) and, if it is not, scrolling through the list as follows: else{ Celula * cursor = p...
asked by 24.04.2018 / 17:44
1
answer

Determine the number of items in a list that are within the limits defined in another list

I have a ListBox that contains an undetermined value of values and I want to throw those values to a List<> and from what I researched, I managed to do so far: var todosValores = lstRoll.Items.OfType<object>().Select(...
asked by 25.03.2018 / 05:20
2
answers

Matrix 4x4 is getting 20 elements

Galera made a code in Python whose exercise asked to make a 4x4 matrix, show the number of elements greater than 10 and show the final matrix. I did and it was all right only that the array is getting 20 elements and is not separated by brackets...
asked by 23.05.2017 / 19:46
1
answer

Function Delete from the list

I have this function to delete from the list chained by value: public void deletar(Object valor) { Node temp = head; while(temp != null) { if(temp.getNext().getValor().equals(valor)) { temp.setNext...
asked by 08.02.2017 / 01:59
1
answer

Async method returning a Liststring how to use?

I have a method called consulta_usuario_email , which is responsible for searching the registered users table, the emails of the users of a certain department: public async Task<List<string>> consulta_usuario_email(string de...
asked by 05.07.2017 / 17:22
1
answer

Linked List - append and push

I'm trying to learn Linked List and made the following code: #include <iostream> using namespace std; typedef struct snode { int data; snode *next; } node; void start(node ** head) { (*head)->next = NULL; } void push(...
asked by 12.07.2017 / 02:43
2
answers

How to display the GetAll data I performed in an HTML table? MVC C # HTML

I'm running a simple mvc site, by college. I have to make a crud. I created a getall method that lists all existing clients in a list. How can I step the same for the view? I tried the line below but I can not use .. @model List<cliente&...
asked by 22.11.2016 / 03:49
2
answers

Import a list to another Form C #

I do not know how to import a list into another form , if anyone can help me. The code for the first form looks like this: Note that I want to transport ListaFornecedores to Form FrmNovoProduto . As I said, I do not...
asked by 17.11.2016 / 15:41
1
answer

Random number list without repeating Android

I have an ArrayList with N items inside and I need to group them randomly into 2 sets of X items and the rest into another set. However, none of them can be repeated. For example: my ArrayList has 20 items added and I want to split it into 2...
asked by 06.02.2016 / 03:21