Posts by Carlos Alexandre • 61 points
5 posts
-
-1
votes1
answer656
viewsQ: Hash function in java
Could someone show me (and explain) a hash (scatter) function without being the? (key % size)? I would like it to be a simple one (and one that exists). In this case I have a table of 11 positions…
-
0
votes0
answers143
viewsQ: Position of first element in Heap object
I’m in doubt about the priority line heap, with regard to inserting items in that list. Every heap starts by inserting from the element vetor[1]? Or you must insert from vetor[0]? 'Cause I got a…
-
0
votes0
answers93
viewsQ: Code to get the biggest number fucked up?
I created the code that is in the image to go through a double chained list and get the biggest token(No number), and sent the following entry(add at the end) : 12, 17, 14, 23, 8, 10. It should be…
javaasked Carlos Alexandre 61 -
-1
votes3
answers3421
viewsQ: Write to files without erasing its contents
How can I write to a file without deleting what’s inside it? I’m using the classes below. public void criarArquivos() throws IOException{ /*1 forma*/ FileWriter arqTeste = new…
-
5
votes1
answer1139
viewsQ: Close console window in C
I need to create the old game. I want to know how to close the black window that appears without having to click any key, for example: When running the program appears: 1 to play 0 to leave If the…