fix: replace imgur URLs with s3 URLs for files with potential conflict (#36049)
* fix: replace imgur with s3 for files with potential conflict (cherry picked from commit 4ec62c0e29a64b0288eade45fb510f25c622945a) * fix/remote extra link Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> * fix: revert change
This commit is contained in:
@ -10,7 +10,7 @@ localeTitle: Создание текстуры путем добавления
|
||||
<section id="description"> Один из способов добавить текстуру и интерес к фону и подчеркнуть ее - добавить тонкий узор. Ключом является баланс, так как вы не хотите, чтобы фон выделялся слишком много, и убирайте с переднего плана. Свойство <code>background</code> поддерживает функцию <code>url()</code> , чтобы ссылаться на изображение выбранной текстуры или рисунка. Адрес ссылки заключен в кавычки внутри круглых скобок. </section>
|
||||
|
||||
## Instructions
|
||||
<section id="instructions"> Использование URL в <code>https://i.imgur.com/MJAkxbh.png</code> , установить <code>background</code> всей страницы с <code>body</code> селектором. </section>
|
||||
<section id="instructions"> Использование URL в <code>https://cdn-media-1.freecodecamp.org/imgr/MJAkxbh.png</code> , установить <code>background</code> всей страницы с <code>body</code> селектором. </section>
|
||||
|
||||
## Tests
|
||||
<section id='tests'>
|
||||
@ -18,7 +18,7 @@ localeTitle: Создание текстуры путем добавления
|
||||
```yml
|
||||
tests:
|
||||
- text: Элемент вашего <code>body</code> должен иметь свойство <code>background</code> установленное в <code>url()</code> с указанной ссылкой.
|
||||
testString: 'assert(code.match(/background:\s*?url\(\s*("|"|)https:\/\/i\.imgur\.com\/MJAkxbh\.png\1\s*\)/gi), "Your <code>body</code> element should have a <code>background</code> property set to a <code>url()</code> with the given link.");'
|
||||
testString: 'assert(code.match(/background:\s*?url\(\s*("|"|)https:\/\/cdn-media-1\.freecodecamp\.org\/imgr\/MJAkxbh\.png\1\s*\)/gi), "Your <code>body</code> element should have a <code>background</code> property set to a <code>url()</code> with the given link.");'
|
||||
|
||||
```
|
||||
|
||||
|
@ -7,7 +7,7 @@ localeTitle: 'Задача 15: Решетчатые пути'
|
||||
---
|
||||
|
||||
## Description
|
||||
<section id="description"> Начиная в левом верхнем углу сетки 2 × 2 и только имея возможность двигаться вправо и вниз, ровно 6 маршрутов в нижний правый угол. <img class="img-responsive center-block" alt="диаграмма 6 2 на 2 сетки, показывающая все маршруты в нижний правый угол" src="https://i.imgur.com/1Atixoj.gif"><p> Сколько таких маршрутов существует через заданный <code>gridSize</code> ? </p></section>
|
||||
<section id="description"> Начиная в левом верхнем углу сетки 2 × 2 и только имея возможность двигаться вправо и вниз, ровно 6 маршрутов в нижний правый угол. <img class="img-responsive center-block" alt="диаграмма 6 2 на 2 сетки, показывающая все маршруты в нижний правый угол" src="https://cdn-media-1.freecodecamp.org/imgr/1Atixoj.gif"><p> Сколько таких маршрутов существует через заданный <code>gridSize</code> ? </p></section>
|
||||
|
||||
## Instructions
|
||||
<section id="instructions">
|
||||
|
@ -8,7 +8,7 @@ localeTitle: تخطيطات
|
||||
|
||||
يمكن تقسيم كل صفحة الويب التي نراها تقريبًا إلى مربعات ، يمكن ترتيبها بترتيب معين لإنشاء صفحة الويب هذه. الصورة أدناه مثال واحد.
|
||||
|
||||

|
||||

|
||||
|
||||
> غالبًا ما تعرض مواقع الويب محتوى في عدة أعمدة (مثل مجلة أو صحيفة).
|
||||
|
||||
|
@ -50,27 +50,27 @@ _O_ ( _log 2 N_ )是这样的,因为在每个步骤中数据集中的一
|
||||
|
||||
使用二进制搜索在给定的数字数组中找到5。
|
||||
|
||||

|
||||

|
||||
|
||||
标记阵列中的低位,高位和中位。
|
||||
|
||||

|
||||

|
||||
|
||||
将您要查找的项目与中间元素进行比较。
|
||||
|
||||

|
||||

|
||||
|
||||
丢掉左半边,看看右半边。
|
||||
|
||||

|
||||

|
||||
|
||||
再次与中间元素进行比较。
|
||||
|
||||

|
||||

|
||||
|
||||
现在,移动到左半边。
|
||||
|
||||

|
||||

|
||||
|
||||
中间元素是我们正在寻找的项目!
|
||||
|
||||
|
@ -8,27 +8,27 @@ localeTitle: 线性搜索
|
||||
|
||||
找到给定列表中的数字13。
|
||||
|
||||

|
||||

|
||||
|
||||
你只要查看清单就可以了!
|
||||
|
||||

|
||||

|
||||
|
||||
现在,您如何告诉计算机找到它。
|
||||
|
||||
计算机在给定的时刻不能看到超过该值的值。因此它从数组中获取一个项目并检查它是否与您要查找的内容相同。
|
||||
|
||||

|
||||

|
||||
|
||||
第一项不匹配。所以转到下一个。
|
||||
|
||||

|
||||

|
||||
|
||||
等等…
|
||||
|
||||
这样做直到找到匹配或直到检查完所有项目。
|
||||
|
||||

|
||||

|
||||
|
||||
在此算法中,您可以在找到项目时停止,然后无需进一步查看。
|
||||
|
||||
|
@ -56,27 +56,27 @@ This is the binary search algorithm. It is elegant and efficient but for it to w
|
||||
|
||||
Find 5 in the given array of numbers using binary search.
|
||||
|
||||

|
||||

|
||||
|
||||
Mark low, high and mid positions in the array.
|
||||
|
||||

|
||||

|
||||
|
||||
Compare the item you are looking for with the middle element.
|
||||
|
||||

|
||||

|
||||
|
||||
Throw away the left half and look in the right half.
|
||||
|
||||

|
||||

|
||||
|
||||
Again compare with the middle element.
|
||||
|
||||

|
||||

|
||||
|
||||
Now, move to the left half.
|
||||
|
||||

|
||||

|
||||
|
||||
The middle element is the item we were looking for!
|
||||
|
||||
|
@ -7,27 +7,27 @@ Suppose you are given a list or an array of items. You are searching for a parti
|
||||
|
||||
Find the number 13 in the given list.
|
||||
|
||||

|
||||

|
||||
|
||||
You just look at the list and there it is!
|
||||
|
||||

|
||||

|
||||
|
||||
Now, how do you tell a computer to find it.
|
||||
|
||||
A computer cannot look at more than the value at a given instant of time. So it takes one item from the array and checks if it is the same as what you are looking for.
|
||||
|
||||

|
||||

|
||||
|
||||
The first item did not match. So move onto the next one.
|
||||
|
||||

|
||||

|
||||
|
||||
And so on...
|
||||
|
||||
This is done till a match is found or until all the items have been checked.
|
||||
|
||||

|
||||

|
||||
|
||||
In this algorithm, you can stop when the item is found and then there is no need to look further.
|
||||
|
||||
|
@ -42,7 +42,7 @@ Let's say you have a C++ file called `helloWorld.cpp` ...
|
||||
#### Using and IDE like CodeBlocks
|
||||
|
||||
It is as simple as clicking the build and run buttons, they will create a file in the project folder.
|
||||

|
||||

|
||||
|
||||
#### Using Command Prompt
|
||||
1. Open a Developer Command Prompt - For this step, you will need to have Microsoft Visual Studio or some other IDE that
|
||||
|
@ -10,7 +10,7 @@ List elements point to its next element so all elements are ordered in sequence
|
||||
How? You may ask. They do this not by indexing but using a special tool called iterators. Iterators are like special pointers
|
||||
whose job is to maintain the order of the list elements kind of like the link between two train cars. Here is a nice visual
|
||||
of how Lists are organized compared to Vectors and Arrays.
|
||||

|
||||

|
||||
|
||||
Traversal in a list is slow as compared to Vectors and Arrays, but once a position has been found, insertion and deletion are quick.
|
||||
|
||||
|
@ -6,7 +6,7 @@ title: STL Algorithms
|
||||
|
||||
STL stands for Standard Template Library. It consists various containers like Vectors, Stacks, Queues etc. It also consists of some commonly used algorithms like sorting, counting etc. The image below shows the quick outline of STL. We will discuss the algorithms part.
|
||||
|
||||

|
||||

|
||||
|
||||
### References:
|
||||
1. [GeeksForGeeks - STL Tutorial](https://www.geeksforgeeks.org/cpp-stl-tutorial/)
|
||||
|
@ -43,7 +43,7 @@ Brackets is a relatively new open-source editor by Adobe. It is very user friend
|
||||
|
||||
### Atom
|
||||
|
||||

|
||||

|
||||
|
||||
Atom is an <a href='https://github.com/atom/atom' target='_blank' rel='nofollow'>open source</a> editor, developed by <a href='https://github.com/' target='_blank' rel='nofollow'>GitHub</a>. Like Sublime Text, Atom is quite popular. It is very configurable ("hackable", as they say) but advanced features may be overwhelming to new users. There is also plenty of <a href='http://readwrite.com/2014/05/20/github-atom-5-tips-getting-started-tutorial-corey-johnson/' target='_blank' rel='nofollow'>helpful</a> <a href='http://flight-manual.atom.io/' target='_blank' rel='nofollow'>documentation</a> <a href='http://stackoverflow.com/search?q=atom' target='_blank' rel='nofollow'>available</a> online.
|
||||
|
||||
@ -54,7 +54,7 @@ Atom is an <a href='https://github.com/atom/atom' target='_blank' rel='nofollow'
|
||||
|
||||
### Visual Studio Code
|
||||
|
||||

|
||||

|
||||
|
||||
Visual Studio Code (a.k.a vsc or vscode) is a very popular, open source editor, developed by <a href="https://www.microsoft.com" target="_blank" rel="nofollow">Microsoft</a> and fast becoming widely used by developers of all languages. Like Atom and Sublime, Visual Studio Code has a wide range of <a href="https://marketplace.visualstudio.com/VSCode" target="_blank" rel="nofollow">extensions</a> and <a href="https://marketplace.visualstudio.com/search?target=VSCode&category=Themes&sortBy=Downloads" target="_blank" rel="nofollow">themes</a> available to help customise and perfect your experience using it, however VSC is highly configurable "out-the-box". There is also a very active development team behind VSCode, with new features and bug fixes being added by the Visual Studio Code team <a href="https://code.visualstudio.com/updates" target="_blank" rel="nofollow">every month</a>.
|
||||
|
||||
|
@ -10,7 +10,7 @@ JavaFX is a graphics framework created by Sun Microsystems used for developing r
|
||||
Gulon Scene Builder is an application used for user interface (UI) design in JavaFX. The application uses drag-and-drop for rapid UI design that allows you to visualize the interface you are creating while designing it.
|
||||
|
||||
#### Screeenshots:
|
||||

|
||||

|
||||
|
||||
### FXML
|
||||
FXML is an XML-based markup language used for defining structures in JavaFX. The FXML document lays out the various objects in the class in a tree similar to tag nesting in XML documents.
|
||||
|
@ -5,13 +5,13 @@ title: Support Vector Machine
|
||||
|
||||
A Support Vector Machine (SVM) is a discriminative classifier formally defined by a separating hyperplane. In other words, given labeled training data (supervised learning), the algorithm outputs an optimal hyperplane which categorizes new examples. It does this by minimizing the margin between the data points near the hyperplane.
|
||||
|
||||

|
||||

|
||||
|
||||
A SVM cost function seeks to approximate the logistic function with a piecewise linear. This ML algorithm is used for classification problems and is part of the subset of supervised learning algorithms.
|
||||
|
||||
### The Cost Function
|
||||
|
||||

|
||||

|
||||
|
||||
The Cost Function is used to train the SVM. By minimizing the value of J(theta), we can ensure that the SVM is as accurate as possible. In the equation, the functions cost1 and cost0 refer to the cost for an example where y=1 and the cost for an example where y=0. Cost, for SVMs, is determined by kernel (similarity) functions.
|
||||
|
||||
|
@ -8,21 +8,21 @@ Source code editors are the programs that allow for code creation and editing. A
|
||||
|
||||
There are many, many editors available to download or use online, both paid and free. They offer many of the same core features, but each have their own subtleties. Further research may help find the one that's right for you. The following editors are all cross-platform and free to use or evaluate.
|
||||
|
||||
## [Sublime Text](https://www.sublimetext.com/)<img src="https://i.imgur.com/3ALtws1.png" width="50px">
|
||||

|
||||
## [Sublime Text](https://www.sublimetext.com/)<img src="https://cdn-media-1.freecodecamp.org/imgr/3ALtws1.png" width="50px">
|
||||

|
||||
|
||||
Sublime Text is a very popular editor that has been around [since 2008](https://www.sublimetext.com/blog/articles/one-point-oh). There are many options and [extensions](https://packagecontrol.io/search/sublime?sort=popularity) available, and a lot of [help available online](http://stackoverflow.com/search?q=sublime+text) to help set it up. Sublime Text is free to download and evaluate, but the license for continued use costs $70.
|
||||
|
||||
## [Brackets](http://brackets.io/)<img src="https://i.imgur.com/fassWYs.png" width="50px">
|
||||

|
||||
## [Brackets](http://brackets.io/)<img src="https://cdn-media-1.freecodecamp.org/imgr/fassWYs.png" width="50px">
|
||||

|
||||
|
||||
Brackets is a relatively new open-source editor by Adobe. It is very user
|
||||
friendly, especially for people who aren't used to command-line interfaces
|
||||
or JSON-style settings/preferences. Extensions and themes are quick and easy
|
||||
to find and install through the Extension Manager.
|
||||
|
||||
## [Atom](https://atom.io/)<img src="https://i.imgur.com/woj5vPm.png" width="50px">
|
||||

|
||||
## [Atom](https://atom.io/)<img src="https://cdn-media-1.freecodecamp.org/imgr/woj5vPm.png" width="50px">
|
||||

|
||||
|
||||
Atom is an [open source](https://github.com/atom/atom) editor, developed by [GitHub](https://github.com/). Atom is very popular and configurable("hackable", as they say), but the advanced features may be overwhelming to new users. There is also plenty of helpful documentation available online.
|
||||
|
||||
@ -31,7 +31,7 @@ Atom is an [open source](https://github.com/atom/atom) editor, developed by [Git
|
||||
- [Atom flight manual](http://flight-manual.atom.io)
|
||||
- [Atom on stackoverflow](http://stackoverflow.com/search?q=atom)
|
||||
|
||||
## [Visual Studio Code](https://code.visualstudio.com/)<img src="https://i.imgur.com/b4vFsKa.png" width="50px">
|
||||
## [Visual Studio Code](https://code.visualstudio.com/)<img src="https://cdn-media-1.freecodecamp.org/imgr/b4vFsKa.png" width="50px">
|
||||

|
||||
|
||||
Visual Studio Code is a source code editor developed by Microsoft since 2015, and is now one of the most known code editors.
|
||||
|
@ -49,12 +49,12 @@ Vamos examinar as várias abordagens para resolver esse problema.
|
||||
|
||||
1. **Primeira Hora de Início Primeiro,** ou seja, selecione o intervalo que tem a hora de início mais antiga. Dê uma olhada no exemplo a seguir que quebra essa solução. Essa solução falhou porque pode haver um intervalo que começa muito cedo, mas isso é muito longo. Isso significa que a próxima estratégia que poderíamos tentar seria onde nós olhamos em intervalos menores primeiro. 
|
||||
|
||||
2. **Intervalo Menor Primeiro,** ou seja, você acaba selecionando as palestras na ordem de seu intervalo geral, que não é nada além do `finish time - start time` . Mais uma vez, esta solução não está correta. Olhe o seguinte caso. 
|
||||
2. **Intervalo Menor Primeiro,** ou seja, você acaba selecionando as palestras na ordem de seu intervalo geral, que não é nada além do `finish time - start time` . Mais uma vez, esta solução não está correta. Olhe o seguinte caso. 
|
||||
|
||||
|
||||
Você pode ver claramente que a palestra de intervalo mais curta é a do meio, mas essa não é a solução ideal aqui. Vamos ver outra solução para esse problema, derivando insights dessa solução.
|
||||
|
||||
3. **Intervalo de Conflito Menor Primeiro,** ou seja, você deve procurar intervalos que causem o menor número de conflitos. Mais uma vez, temos um exemplo em que essa abordagem não consegue encontrar uma solução ideal. 
|
||||
3. **Intervalo de Conflito Menor Primeiro,** ou seja, você deve procurar intervalos que causem o menor número de conflitos. Mais uma vez, temos um exemplo em que essa abordagem não consegue encontrar uma solução ideal. 
|
||||
|
||||
O diagrama nos mostra que o intervalo menos conflitante é aquele no meio com apenas 2 conflitos. Depois disso, só podemos escolher os dois intervalos nas extremidades com conflitos 3 cada. Mas a melhor solução é escolher os 4 intervalos no nível mais alto.
|
||||
|
||||
|
@ -50,27 +50,27 @@ Este é o algoritmo de busca binária. É elegante e eficiente, mas para funcion
|
||||
|
||||
Encontre 5 na matriz de números fornecida usando a pesquisa binária.
|
||||
|
||||

|
||||

|
||||
|
||||
Marque as posições baixa, alta e média na matriz.
|
||||
|
||||

|
||||

|
||||
|
||||
Compare o item que você está procurando com o elemento do meio.
|
||||
|
||||

|
||||

|
||||
|
||||
Jogue fora a metade esquerda e olhe na metade direita.
|
||||
|
||||

|
||||

|
||||
|
||||
Mais uma vez compare com o elemento do meio.
|
||||
|
||||

|
||||

|
||||
|
||||
Agora, vá para a metade esquerda.
|
||||
|
||||

|
||||

|
||||
|
||||
O elemento do meio é o item que estávamos procurando!
|
||||
|
||||
|
@ -8,27 +8,27 @@ Suponha que você receba uma lista ou uma matriz de itens. Você está procurand
|
||||
|
||||
Encontre o número 13 na lista dada.
|
||||
|
||||

|
||||

|
||||
|
||||
Você apenas olha para a lista e aí está!
|
||||
|
||||

|
||||

|
||||
|
||||
Agora, como você diz a um computador para encontrá-lo?
|
||||
|
||||
Um computador não pode olhar mais do que o valor em um determinado instante de tempo. Então, é preciso um item da matriz e verifica se é o mesmo que você está procurando.
|
||||
|
||||

|
||||

|
||||
|
||||
O primeiro item não coincidiu. Então, mude para o próximo.
|
||||
|
||||

|
||||

|
||||
|
||||
E assim por diante…
|
||||
|
||||
Isso é feito até que uma correspondência seja encontrada ou até que todos os itens tenham sido verificados.
|
||||
|
||||

|
||||

|
||||
|
||||
Neste algoritmo, você pode parar quando o item é encontrado e, em seguida, não há necessidade de procurar mais.
|
||||
|
||||
|
@ -50,27 +50,27 @@ _O_ ( _log 2 N_ ) такова, что на каждом шаге половин
|
||||
|
||||
Найдите 5 в заданном массиве чисел, используя двоичный поиск.
|
||||
|
||||

|
||||

|
||||
|
||||
Отметьте низкие, высокие и средние позиции в массиве.
|
||||
|
||||

|
||||

|
||||
|
||||
Сравните элемент, который вы ищете, с помощью среднего элемента.
|
||||
|
||||

|
||||

|
||||
|
||||
Выбросьте левую половину и посмотрите в правую половину.
|
||||
|
||||

|
||||

|
||||
|
||||
Снова сравните с средним элементом.
|
||||
|
||||

|
||||

|
||||
|
||||
Теперь перейдите в левую половину.
|
||||
|
||||

|
||||

|
||||
|
||||
Средний элемент - это тот элемент, который мы искали!
|
||||
|
||||
|
@ -8,27 +8,27 @@ localeTitle: Линейный поиск
|
||||
|
||||
Найдите номер 13 в данном списке.
|
||||
|
||||

|
||||

|
||||
|
||||
Вы просто смотрите на список, и вот он!
|
||||
|
||||

|
||||

|
||||
|
||||
Теперь, как вы говорите компьютеру, чтобы его найти.
|
||||
|
||||
Компьютер не может смотреть больше, чем значение в данный момент времени. Поэтому он берет один элемент из массива и проверяет, совпадает ли он с тем, что вы ищете.
|
||||
|
||||

|
||||

|
||||
|
||||
Первый элемент не совпал. Поэтому переходите к следующему.
|
||||
|
||||

|
||||

|
||||
|
||||
И так далее…
|
||||
|
||||
Это делается до тех пор, пока не будет найдено совпадение или пока все элементы не будут проверены.
|
||||
|
||||

|
||||

|
||||
|
||||
В этом алгоритме вы можете остановиться, когда элемент найден, и тогда нет необходимости смотреть дальше.
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
---
|
||||
title: C++
|
||||
localeTitle: C ++
|
||||
---
|
||||
---
|
||||
# Привет, мир! - Ваша первая программа на C ++
|
||||
|
||||
## Что такое C ++?
|
||||
|
||||
@ -79,7 +80,7 @@ int main()
|
||||
|
||||
### Код должен выглядеть примерно так:
|
||||
|
||||
|
||||

|
||||
|
||||
Программисты используют программу Hello World (например, эту) в качестве ритуала использования нового языка программирования. Это символ удачи.
|
||||
_Вы закончили кодирование своей первой программы на C ++ и поняли большую часть кода, который вы написали / набрали. ПОЗДРАВЛЯЕМ!_
|
||||
|
@ -16,7 +16,7 @@ localeTitle: 2 на 2 Определители
|
||||
|
||||
Абсолютная величина определителя равна площади параллелограмма.
|
||||
|
||||
 [Вот](https://i.stack.imgur.com/gCaz3.png) интересное визуальное доказательство этого свойства.
|
||||
 [Вот](https://cdn-media-1.freecodecamp.org/imgr/gCaz3.png) интересное визуальное доказательство этого свойства.
|
||||
|
||||
Примечание. Если детерминант равен нулю, то в системе нет решений (пересечений) (так как прямые параллельны).
|
||||
|
||||
|
@ -8,13 +8,13 @@ localeTitle: Установка VirtualBox На macOS
|
||||
|
||||
[Здесь](https://www.virtualbox.org/wiki/Downloads) можно посетить сайт. Вы увидите следующую страницу. Нажмите «Хост OS X» и автоматически загрузите файл dmg, в который файл входит приложение VirtualBox.
|
||||
|
||||

|
||||

|
||||
|
||||
### ШАГ 2 - щелкните файл dmg
|
||||
|
||||
Нажмите только что загруженный файл dmg, и вы увидите экран проверки. Дважды щелкните значок окна с именем «VirtualBox.pkg». Появится экран установки.
|
||||
|
||||

|
||||

|
||||
|
||||
### ШАГ 3 - установите VirtualBox
|
||||
|
||||
@ -22,10 +22,10 @@ localeTitle: Установка VirtualBox На macOS
|
||||
|
||||
**Примечание. Обратите** внимание, что ваш macOS не разрешил неизвестный источник. Если вы видите окно подсказки, нажмите кнопку настройки вместо кнопки «ОК». Вы можете выбрать параметр `allow` в настройках и перезапустить установку.
|
||||
|
||||

|
||||

|
||||
|
||||
### Запустить VirtualBox
|
||||
|
||||
После завершения установки вы можете открыть VirtualBox в «Launchpad». Или найдите `VirtualBox` в Spotlight.
|
||||
|
||||

|
||||

|
@ -50,27 +50,27 @@ Este es el algoritmo de búsqueda binario. Es elegante y eficiente, pero para qu
|
||||
|
||||
Encuentra 5 en la matriz de números dada usando la búsqueda binaria.
|
||||
|
||||

|
||||

|
||||
|
||||
Marque las posiciones bajas, altas y medias en la matriz.
|
||||
|
||||

|
||||

|
||||
|
||||
Compara el elemento que buscas con el elemento central.
|
||||
|
||||

|
||||

|
||||
|
||||
Tire la mitad izquierda y mire la mitad derecha.
|
||||
|
||||

|
||||

|
||||
|
||||
Nuevamente se compara con el elemento medio.
|
||||
|
||||

|
||||

|
||||
|
||||
Ahora, muévete a la mitad izquierda.
|
||||
|
||||

|
||||

|
||||
|
||||
¡El elemento central es el elemento que buscábamos!
|
||||
|
||||
|
@ -8,27 +8,27 @@ Supongamos que le dan una lista o una matriz de elementos. Usted está buscando
|
||||
|
||||
Encuentra el número 13 en la lista dada.
|
||||
|
||||

|
||||

|
||||
|
||||
¡Basta con mirar la lista y ahí está!
|
||||
|
||||

|
||||

|
||||
|
||||
Ahora, ¿cómo le dices a una computadora para encontrarlo?
|
||||
|
||||
Una computadora no puede mirar más que el valor en un instante dado de tiempo. Por lo tanto, toma un elemento de la matriz y comprueba si es lo mismo que está buscando.
|
||||
|
||||

|
||||

|
||||
|
||||
El primer elemento no coincide. Así que pasa a la siguiente.
|
||||
|
||||

|
||||

|
||||
|
||||
Y así…
|
||||
|
||||
Esto se hace hasta que se encuentra una coincidencia o hasta que se hayan verificado todos los elementos.
|
||||
|
||||

|
||||

|
||||
|
||||
En este algoritmo, puede detener cuando se encuentra el elemento y, a continuación, no hay necesidad de buscar más.
|
||||
|
||||
|
@ -4,7 +4,7 @@ localeTitle: Listas de C ++
|
||||
---
|
||||
# ¿Qué es una lista de STL?
|
||||
|
||||
Las listas en C ++ son una herramienta poderosa similar a su primo más conocido, C ++ Vectors. Mientras que los vectores son un contenedor secuencial. donde los elementos se indexan en una cadena continua, las listas también son un contenedor secuencial, pero se organizan de manera diferente. Los elementos de la lista apuntan a su siguiente elemento, por lo que todos los elementos están ordenados en secuencia, pero no utilizan la indexación. ¿Cómo? Tu puedes preguntar. Lo hacen no mediante la indexación sino mediante una herramienta especial llamada iteradores. Los iteradores son como punteros especiales. cuyo trabajo es mantener el orden de los elementos de la lista como el enlace entre dos vagones de tren. Aquí hay una buena visual de cómo se organizan las listas en comparación con los vectores y matrices. 
|
||||
Las listas en C ++ son una herramienta poderosa similar a su primo más conocido, C ++ Vectors. Mientras que los vectores son un contenedor secuencial. donde los elementos se indexan en una cadena continua, las listas también son un contenedor secuencial, pero se organizan de manera diferente. Los elementos de la lista apuntan a su siguiente elemento, por lo que todos los elementos están ordenados en secuencia, pero no utilizan la indexación. ¿Cómo? Tu puedes preguntar. Lo hacen no mediante la indexación sino mediante una herramienta especial llamada iteradores. Los iteradores son como punteros especiales. cuyo trabajo es mantener el orden de los elementos de la lista como el enlace entre dos vagones de tren. Aquí hay una buena visual de cómo se organizan las listas en comparación con los vectores y matrices. 
|
||||
|
||||
## Cómo declarar una lista
|
||||
|
||||
|
@ -14,7 +14,7 @@ Estos modificadores de acceso pueden aplicarse a campos, métodos y clases (las
|
||||
|
||||
#### Referencia de la tabla de modificadores de acceso:
|
||||
|
||||

|
||||

|
||||
|
||||
#### Modificador de acceso privado
|
||||
|
||||
|
@ -14,7 +14,7 @@ Gulon Scene Builder es una aplicación utilizada para el diseño de interfaz de
|
||||
|
||||
#### Screeenshots:
|
||||
|
||||

|
||||

|
||||
|
||||
### FXML
|
||||
|
||||
|
@ -6,7 +6,7 @@ localeTitle: Mecanografiado
|
||||
|
||||
### Visión de conjunto
|
||||
|
||||

|
||||

|
||||
|
||||
Por lo que es probable que sepa, JavaScript está expandiendo su huella cada día y es abrumador y sorprendente lo que puede hacer con el lenguaje hoy en día.
|
||||
|
||||
@ -16,7 +16,7 @@ Este es un problema reconocido por Microsoft desde el principio y se les ocurri
|
||||
|
||||
Puede obtener más información sobre las diferencias de sintaxis en [`TypeScript`](./) > [`JavaScript vs TypeScript`](./javascript-vs-typescript) .
|
||||
|
||||

|
||||

|
||||
|
||||
En esencia, TypeScript está tratando de ayudar a que JavaScript alcance nuevas alturas y se vuelva muy escalable y se puede resaltar con las siguientes características:
|
||||
|
||||
@ -41,7 +41,7 @@ Para obtener más información sobre el uso de una impresora con TypeScript, con
|
||||
|
||||
### Patio de recreo
|
||||
|
||||

|
||||

|
||||
|
||||
Si desea probar TypeScript sin instalarlo, visite el [PlayScript Playground](http://www.typescriptlang.org/play/index.html) .
|
||||
|
||||
|
@ -8,13 +8,13 @@ localeTitle: Instalar VirtualBox en macOS
|
||||
|
||||
[Aquí](https://www.virtualbox.org/wiki/Downloads) para visitar el sitio web. Verás la siguiente página. Haga clic en "OS X host" y descargará automáticamente el archivo dmg, que incluye la aplicación VirtualBox.
|
||||
|
||||

|
||||

|
||||
|
||||
### PASO 2 - Haga clic en el archivo dmg
|
||||
|
||||
Haga clic en el archivo dmg que se acaba de descargar y verá la pantalla de verificación. Haga doble clic en el icono de la casilla con el nombre "VirtualBox.pkg". Esto mostrará la pantalla de instalación.
|
||||
|
||||

|
||||

|
||||
|
||||
### PASO 3 - Instalar VirtualBox
|
||||
|
||||
@ -22,10 +22,10 @@ Cuando ves la pantalla similar con la siguiente imagen. Puede hacer clic en sigu
|
||||
|
||||
**Nota** : Notará que su macOS no permitió la fuente desconocida. Si ve el cuadro de aviso, presione el botón de configuración en lugar del botón "Aceptar". Puede seleccionar la opción de `allow` en la configuración y reiniciar la instalación.
|
||||
|
||||

|
||||

|
||||
|
||||
### Ejecutar VirtualBox
|
||||
|
||||
Una vez que la instalación haya finalizado, puede abrir VirtualBox en el "Launchpad". O busca `VirtualBox` en Spotlight.
|
||||
|
||||

|
||||

|
Reference in New Issue
Block a user