Posts by Dantex • 97 points
5 posts
- 
		2 votes1 answer94 viewsQ: How to pass an algorithm as parameter in java?I’m doing some time measurements on sorting algorithms and created this method that calculates the time it takes an algorithm to sort an array of disordered numbers public static double… 
- 
		3 votes1 answer225 viewsQ: Which classes implement the abstract type of queue data?Considering that there are classes java.util.Stack and java.util.ArrayDeque in the context of stacks, there are also Java classes that implement the abstract type of data queue?… 
- 
		2 votes1 answer66 viewsQ: What is the java class stack growth policy?I am doing a work on different Tacks and what I am studying increases its size to double when we introduce the (2 n+)1 element. But what is the growth policy of java.util.Stack and… 
- 
		0 votes0 answers49 viewsQ: How to optimize a power loop of 2 n and (2 n)+1 in java?Good, I’m doing a job where I have to do tests in Stacks, and the tests have to be done when I push and pop of powers of 2 and powers of 2 plus one (1,2,3,4,5,8,9,16,17, etc...) I got some code… 
- 
		2 votes1 answer2649 viewsQ: How to calculate 2 n and (2 n)+1 in java?I am doing a work in which I have to do some calculations with batteries and I need to do tests for powers of two and powers of two plus one, namely 1, 2, 3, 5, 8, 9, 16, 17, etc. The power of two…