Posts by Matheus Guedes • 21 points
2 posts
-
0
votes0
answers33
viewsQ: How to find subsequences of a given vector, excluding given positions?
Given the vector v: [7 , 8 , 30 , -2 , 9] And the vector rem, which contains, in ascending order, the positions removed: [1 , 4] It is necessary to do a function seq(rem,n) (where n is the number of…
-
1
votes2
answers77
viewsQ: If an A class is an implementation of an X interface, will the subclasses of A also be?
With the interface Posicionavel: package projeto; public interface Posicionavel { public boolean mesmaPosicao(Posicionavel p); public boolean mesmaPosicao(int[] x); public int[] posicoes(); } And…