Reverse String with C++ and Python | LeetCode Algorithms with C++ and Python 1

Pubblicato il: 01 gennaio 1970
sul canale di: Alfonso Gonzalez - Astrodynamics & SE Podcast
425
11

This video covers 2 reverse string algorithms in C++ and Python, code can be found in the algos GitHub repository: https://github.com/alfonsogonzalez/algos

The input to the in-place string reversal function is going to be an array of characters (in this case we’ll be using the word astrodynamics), and we can think of this array as the diagram on the top, where each character is sitting in its own block of memory. These characters don’t necessarily have to be contiguous in memory but we’ll assume they are here.

Note that the input here is a reference to a character vector, so we are going to change the values within the array, thus we aren’t returning anything, so we mark the function as void.

#leetcode #cpp #python


In questa pagina del sito puoi guardare il video online Reverse String with C++ and Python | LeetCode Algorithms with C++ and Python 1 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Alfonso Gonzalez - Astrodynamics & SE Podcast 01 gennaio 1970, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 425 volte e gli è piaciuto 11 spettatori. Buona visione!