# Questions tagged as 'algoritmo'

5

## Remove last comma from an array

In this code below I have an array that returns me a comma at the end  exe: '98602', '98603', '98604', How can I remove this comma? if (isset(\$_POST['checkbox'])) { foreach (\$_POST['checkbox'] as \$key => \$value) { \$id = mysql_re...
6

## Function that lists letters of the alphabet

How to convert the letters of the alphabet into an array of numbers according to its sequence? The array should start from # 1, not zero. So the letter A would be 1 , B would be 2 , C would be 3 , an...
2

## Factorial Series of thehuxley.com site

Make a program that computes and writes the sum of the n first terms of the series: seriefatorial http://www.thehuxley.com/data/images/app/ problems / temp / e68085c6d699d2c7029907f994c57b80.png Input format An integer n indicating t...
1

## How does the LED light encryption algorithm work?

I would like to better understand the operation of the algorithm LED step by step, mainly the process of substitution and permutation of the blocks and mainly the use of the keys in each round. Are the keys in each round expansions of...
2

## How to detect when the person starts speaking using SpeechRecognition () in Javascript

I'm using SpeechRecognition (native to every browser) to be able to do voice searches on a website and I noticed that Google can identify when the person starts talking (both in "Ok google" and when the person clicks the button To talk). I tried...
2

## Algorithm in C to convert arabic number to roman number

How to do this conversion? It does not have to be the algorithm ready, I wanted a help at least in logic.
4

## How to split a string in C ++?

I received this simple (I really thought it was!) challenge of creating a "tokenizer". I had to split string " O rato roeu a roupa do rei de roma " into spaces. So, after a long time, I developed the following algori...
4

## Best algorithm to calculate factorial

So, I'm learning to develop in Java. The teacher asked me to develop a method for the Factorial. And also show what is happening on the screen, for example: 3! = 3 X 2 X 1 = 6 In fact, I made it happen, but is there any way for the code...
2