Posts by nodeAlp • 21 points
3 posts
-
0
votes2
answers1331
viewsA: Intermediate vectors in C
You can solve this easily with Bubble Sort, but it is very slow, or if the vectors are composed only by positive values you can apply Counting Sort, a very good algorithm for this type of case.…
-
0
votes1
answer41
viewsA: I created a function to receive a structure, but it always returns 0, can anyone help me?
You have assigned the nickname 'value' to the struct 'input' through typedef, that is, every time you write 'value' in your code, it will interpret as 'struct input', and you have used 'struct input…
-
2
votes1
answer185
viewsA: Validate email in JAVA memory
To know if the string has the character @, you can use the contains: String teste = "abc@s"; if (teste.contains("@")) { System.out.println("existe o caractere @ na string"); } else {…