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]])...
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...
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(...
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...
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...
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...
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(...
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&...
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...
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...