Posts by Lucas Lemos • 75 points
4 posts
-
0
votes2
answers124
viewsA: Loop problem when using Do-While (C language)
Its function menu must return an integer representing the chosen option, I did not see the return in your code. The function scanf is problematic because it puts in the keyboard buffer the ENTER…
canswered Lucas Lemos 75 -
2
votes2
answers53
viewsA: Show a missing address
The guy int is a primitive type and cannot return null. Change the return of your original function: public static int pesquisa_binaria(int lista[], int item) To: public static Integer…
-
2
votes1
answer62
viewsA: Find a way inside a tree
To work with trees, we have to define a way of walking the paths of it. We have some forms: Walk: visit the root runs through the left subtree runs through the right subtree Walk in-fixed: runs…
-
2
votes2
answers136
viewsQ: SPRING - Count the number of queries made in a request
I have a simple requisition GET for example, to search a product for your ID: @Autowired private ProdutoRepository produtos; @GetMapping public Optional<Produto> listarProduto(){ return…