Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pt-br translation init #115

Merged
merged 87 commits into from
Oct 11, 2017
Merged
Changes from 1 commit
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
f660781
added pt-br readme file and made initial translation
avizmarlon Jan 3, 2017
f404534
updated translation
avizmarlon Jan 3, 2017
5f3fbe9
fixed typo
avizmarlon Jan 3, 2017
3bb78ea
updated translation
avizmarlon Jan 3, 2017
6dd9e73
updated translation
avizmarlon Jan 4, 2017
f01cc16
updated translation and fixed typos
avizmarlon Jan 14, 2017
5b4029b
Merge branch 'ptbr-translation' of https://github.com/avizmarlon/goog…
avizmarlon Jan 14, 2017
394c3b1
Translate topic
marceloogeda Feb 16, 2017
93de877
Fix typo.
marceloogeda Feb 16, 2017
89f9939
translate more of 'Before you Get Started'
marceloogeda Feb 21, 2017
3cf6993
translate more of 'Before you Get Started'
marceloogeda Feb 22, 2017
29e998f
Fix line-break.
marceloogeda Feb 22, 2017
c79332c
translate more of 'Before you Get Started'
marceloogeda Mar 8, 2017
76201b0
translate more of 'Before you Get Started'
marceloogeda Mar 8, 2017
a37b208
translate more of 'Before you Get Started'
marceloogeda Mar 10, 2017
98d03c5
translate more of 'Before you Get Started'
marceloogeda Mar 10, 2017
fb8de46
translate more of 'Before you Get Started'
marceloogeda Mar 10, 2017
283490b
translate more of Before you get Started
laris151 Mar 11, 2017
8669deb
Merge pull request #1 from laris151/ptbr-translation
marceloogeda Mar 11, 2017
d07ce7d
Fix typo.
marceloogeda Mar 11, 2017
59fddfe
translate topic
laris151 Mar 11, 2017
8ba8824
Merge pull request #4 from marceloogeda/ptbr-translation
avizmarlon Mar 12, 2017
eaf6107
fixed typos
avizmarlon Mar 12, 2017
b35d2f2
Update README-ptbr.md
laris151 Mar 14, 2017
354b18b
Merge pull request #5 from laris151/ptbr-translation
avizmarlon Mar 14, 2017
db9987e
update for consistency
avizmarlon Mar 14, 2017
f6fed18
edited for consistency
avizmarlon Mar 14, 2017
8dbfd85
updated translation
avizmarlon Mar 27, 2017
60a2476
Merge branch 'ptbr-translation' of https://github.com/avizmarlon/goog…
avizmarlon Mar 27, 2017
ccaac42
Updated translation. Closes #7
avizmarlon Mar 30, 2017
68da105
fixed typos
avizmarlon Mar 30, 2017
6967a15
fixed typos
avizmarlon Mar 30, 2017
6529d39
initiating translation of new section
avizmarlon Mar 30, 2017
1612a0a
updated translation
avizmarlon Mar 30, 2017
0a44f11
finished translation of 2 sections, close #8
avizmarlon Apr 1, 2017
76cde4f
initiated translation of new sections, #9
avizmarlon Apr 1, 2017
ed517d9
fixed typos and updated some of the text according to changes made to…
avizmarlon Apr 1, 2017
a616bbe
changing translation file according to changes made to original file
avizmarlon Apr 1, 2017
09ad22e
finished editing translation file according to changes in original file
avizmarlon Apr 1, 2017
9ad9fdb
translation of small section
avizmarlon Apr 1, 2017
6966a72
fixed translation file, was missing parts from the original file
avizmarlon Apr 1, 2017
6b104c8
finished translation of two other sections, closes #9
avizmarlon Apr 5, 2017
e64b6b7
fixed typo
avizmarlon Apr 5, 2017
6960f40
Merge branch 'ptbr-translation' of https://github.com/avizmarlon/goog…
avizmarlon Jun 5, 2017
679d69b
fixed typos, improved parts of previous translation and translated se…
avizmarlon Jun 5, 2017
b26560c
updated index and fixed formatting of some sentences
avizmarlon Jun 5, 2017
20d7b03
update index
avizmarlon Jun 5, 2017
bbffbfa
update index
avizmarlon Jun 5, 2017
743901d
translated original author's quote at the beginning of document
avizmarlon Jun 5, 2017
6b1f08b
updated file according to original readme.md file
avizmarlon Jun 5, 2017
aa408a4
Merge branch 'master' into ptbr-translation
avizmarlon Jun 5, 2017
4a8ab01
updated translation, closes #12
avizmarlon Jun 6, 2017
f0c8e62
updated translation, closes #13
avizmarlon Jun 7, 2017
392b7c6
updated translation, closes #14
avizmarlon Jun 8, 2017
7bd35b9
updated translation
avizmarlon Jun 8, 2017
a4f9e0c
fixed typos
avizmarlon Jun 8, 2017
2528a64
fixed typos
avizmarlon Jun 8, 2017
fe7ac79
fixed typos
avizmarlon Jun 8, 2017
02a4188
fixed typos
avizmarlon Jun 8, 2017
efd1bbe
updated translation, closes #15
avizmarlon Jun 9, 2017
3ec6cbe
updated translation
avizmarlon Jun 9, 2017
251a61b
updated translation, closes #16
avizmarlon Jun 9, 2017
cd924c0
updated translation, closes #17
avizmarlon Jun 9, 2017
af55501
updated translation
avizmarlon Jun 9, 2017
2915d30
updated translation, closes #18 #19 #20 #21 #22 #23
avizmarlon Jun 10, 2017
1581689
updated translation
avizmarlon Jun 10, 2017
007bb62
updated translation, progress on #25
avizmarlon Jun 10, 2017
d35984d
updated translation, progress on #25
avizmarlon Jun 11, 2017
872d4ff
updated translation, closes #25
avizmarlon Jun 11, 2017
bcd532c
updated translation
avizmarlon Jun 11, 2017
47f2022
updated translation
avizmarlon Jun 11, 2017
e7d65df
updated translation, closes #26
avizmarlon Jun 12, 2017
4bb83a3
updated translation, closes #27
avizmarlon Jun 12, 2017
39d5d10
updated translation
avizmarlon Jun 12, 2017
89919db
updated translation, closes #29
avizmarlon Jun 12, 2017
7a96818
Merge branch 'master' of https://github.com/jwasham/coding-interview-…
avizmarlon Jun 12, 2017
b1345f2
updated translation, closes #28
avizmarlon Jun 12, 2017
2a1a08f
updated translation, closes #6
avizmarlon Jun 19, 2017
c34f545
updated translation
avizmarlon Jun 19, 2017
c72dabd
Merge branch 'master' of https://github.com/avizmarlon/google-intervi…
avizmarlon Jun 19, 2017
3ed30de
added credits and updated files' hyperlinks to translations
avizmarlon Jun 19, 2017
8a64d38
updated translation
avizmarlon Jun 19, 2017
d9f225a
added link to view progress history of translation
avizmarlon Jun 19, 2017
b9f2c89
minor formatting adjustement
avizmarlon Jun 19, 2017
8535d82
Merge branch 'master' into ptbr-translation
avizmarlon Aug 29, 2017
8e0b7bf
updated according to English version
avizmarlon Aug 29, 2017
20633a7
Merge branch 'master' into ptbr-translation
jwasham Oct 11, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed typos, improved parts of previous translation and translated se…
…ction Trees, closes #11
  • Loading branch information
avizmarlon committed Jun 5, 2017
commit 679d69ba405bef22c63141b15fa0c7e0dddcc7c8
162 changes: 81 additions & 81 deletions translations/README-ptbr.md
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ Write code on a whiteboard or paper, not a computer. Test with some sample input
- [ ] [Singly Linked Lists (video)](https://www.coursera.org/learn/data-structures/lecture/kHhgK/singly-linked-lists) (listas ligadas individualmente (vídeo))
- [ ] [CS 61B - Linked Lists (video)](https://www.youtube.com/watch?v=sJtJOtXCW_M&list=PL-XXv-cvA_iAlnI-BQr9hjqADPBtujFJd&index=5) (CS 61B - Listas Ligadas (vídeo))
- [ ] [C Code (video)](https://www.youtube.com/watch?v=QN6FPiD0Gzo) (Código em C (vídeo))
- não o vídeo inteiro, apenas partes sobre estrutura de nodes (nós) e alocação de memória.
- não o vídeo inteiro, apenas as partes sobre estrutura de nodes (nós) e alocação de memória.
- [ ] Listas Ligadas vs Arrays:
- [Core Linked Lists Vs Arrays (video)](https://www.coursera.org/learn/data-structures-optimizing-performance/lecture/rjBs9/core-linked-lists-vs-arrays) (Fundamental: Listas Ligadas vs Arrays (vídeo))
- [In The Real World Linked Lists Vs Arrays (video)](https://www.coursera.org/learn/data-structures-optimizing-performance/lecture/QUaUd/in-the-real-world-lists-vs-arrays) (No Mundo Real: Listas Ligadas vs Arrays (vídeo))
Expand Down Expand Up @@ -621,7 +621,7 @@ Write code on a whiteboard or paper, not a computer. Test with some sample input

- ### Lógica binária
- [ ] [Bits cheat sheet](https://github.com/jwasham/google-interview-university/blob/master/extras/cheat%20sheets/bits-cheat-cheet.pdf) (Folha de consultas sobre Bits) - você deve conhecer várias das potências de 2 de (2^1 até 2^16 e 2^32)
- [ ] Consiga um bom entendimento sobre manipular bits com: &, |, ^, ~, >>, <<
- [ ] Consiga um bom entendimento sobre manipulação de bits com: &, |, ^, ~, >>, <<
- [ ] [words](https://en.wikipedia.org/wiki/Word_(computer_architecture)) (palavras)
- [ ] Boa introdução:
[Bit Manipulation (video)](https://www.youtube.com/watch?v=7jkIUgLC29I) (Manipulação de Bit (vídeo))
Expand All @@ -631,10 +631,10 @@ Write code on a whiteboard or paper, not a computer. Test with some sample input
- [ ] [Bithacks](https://graphics.stanford.edu/~seander/bithacks.html) (Snippets/Fragmentos de código, um tipo de cheatsheet (folha de consultas))
- [ ] [The Bit Twiddler](https://bits.stephan-brumme.com/)
- [ ] [The Bit Twiddler Interactive](https://bits.stephan-brumme.com/interactive.html) (Interativo)
- [ ] Complemento de 2s e 1s
- [Binary: Plusses & Minuses (Why We Use Two's Complement) (video)](https://www.youtube.com/watch?v=lKTsv6iVxV4) (Binário: Vantagens & Desvantagens (Por Que Usamos Complemento de 2s) (vídeo))
- [1s Complement](https://en.wikipedia.org/wiki/Ones%27_complement) (Complemento de 1s)
- [2s Complement](https://en.wikipedia.org/wiki/Two%27s_complement) (Complemento de 2s)
- [ ] Complemento de 2 e 1
- [Binary: Plusses & Minuses (Why We Use Two's Complement) (video)](https://www.youtube.com/watch?v=lKTsv6iVxV4) (Binário: Vantagens & Desvantagens (Por Que Usamos Complemento de 2) (vídeo))
- [1s Complement](https://en.wikipedia.org/wiki/Ones%27_complement) (Complemento de 1)
- [2s Complement](https://en.wikipedia.org/wiki/Two%27s_complement) (Complemento de 2)
- [ ] contagem de bits fixos
- [4 ways to count bits in a byte (video)](https://youtu.be/Hzuzo9NJrlc) (4 maneiras de contar bits em um byte (vídeo))
- [Count Bits](https://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetKernighan) (Contagem de Bits)
Expand All @@ -646,88 +646,88 @@ Write code on a whiteboard or paper, not a computer. Test with some sample input
- [ ] valor absoluto:
- [Absolute Integer](https://bits.stephan-brumme.com/absInteger.html) (Número Inteiro Absoluto)

## Trees

- ### Trees - Notes & Background
- [ ] [Series: Core Trees (video)](https://www.coursera.org/learn/data-structures-optimizing-performance/lecture/ovovP/core-trees)
- [ ] [Series: Trees (video)](https://www.coursera.org/learn/data-structures/lecture/95qda/trees)
- basic tree construction
- traversal
- manipulation algorithms
- BFS (breadth-first search)
- [MIT (video)](https://www.youtube.com/watch?v=s-CYnVz-uh4&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb&index=13)
- level order (BFS, using queue)
time complexity: O(n)
space complexity: best: O(1), worst: O(n/2)=O(n)
- DFS (depth-first search)
- [MIT (video)](https://www.youtube.com/watch?v=AfSk24UTFS8&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb&index=14)
- notes:
time complexity: O(n)
## Árvores

- ### Árvores - Anotações e Fundamentos
- [ ] [Series: Core Trees (video)](https://www.coursera.org/learn/data-structures-optimizing-performance/lecture/ovovP/core-trees) (Série: Árvores Fundamentais (vídeo))
- [ ] [Series: Trees (video)](https://www.coursera.org/learn/data-structures/lecture/95qda/trees) (Série: Árvores (vídeo))
- contrução básica de árvore
- transversal
- algorítmos de manipulação
- Busca em largura (conhecido no Inglês como BFS ou breadth-first search)
- [MIT (vídeo)](https://www.youtube.com/watch?v=s-CYnVz-uh4&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb&index=13)
- ordem de nível (busca em largura, usando filas)
complexidade de tempo: O(n)
complexidade de espaço: melhor: O(1), pior: O(n/2)=O(n)
- Busca em profundidade (conhecido no Inglês como DFS ou depth-first search)
- [MIT (vídeo)](https://www.youtube.com/watch?v=AfSk24UTFS8&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb&index=14)
- anotações:
complexidade de tempo: O(n)
space complexity:
best: O(log n) - avg. height of tree
worst: O(n)
- inorder (DFS: left, self, right)
- postorder (DFS: left, right, self)
- preorder (DFS: self, left, right)

- ### Binary search trees: BSTs
- [ ] [Binary Search Tree Review (video)](https://www.youtube.com/watch?v=x6At0nzX92o&index=1&list=PLA5Lqm4uh9Bbq-E0ZnqTIa8LRaL77ica6)
- [ ] [Series (video)](https://www.coursera.org/learn/data-structures-optimizing-performance/lecture/p82sw/core-introduction-to-binary-search-trees)
- starts with symbol table and goes through BST applications
- [ ] [Introduction (video)](https://www.coursera.org/learn/data-structures/lecture/E7cXP/introduction)
- [ ] [MIT (video)](https://www.youtube.com/watch?v=9Jry5-82I68)
melhor: O(log n) - altura média da árvore
pior: O(n)
- em-ordem ou ordem simétrica(na busca em profundidade (ou DFS): percorre subárvore esquerda em ordem simétrica (em-ordem), visita a raiz, percorre subárvore direita em ordem simétrica)
- pós-ordem (na busca em profundidade (ou DFS): percorre subárvore esquerda em pós-ordem, percorre subárvore direita em pós-ordem, visita a raiz)
- pré-ordem (na busca em profundidade (ou DFS): visita a raiz, percorre subárvore esquerda em pré-ordem, percorre subárvore direita em pré-ordem)

- ### Árvores binárias de busca: ABB
- [ ] [Binary Search Tree Review (video)](https://www.youtube.com/watch?v=x6At0nzX92o&index=1&list=PLA5Lqm4uh9Bbq-E0ZnqTIa8LRaL77ica6) (Revisão de Árvores Binárias de Busca (vídeo))
- [ ] [Série (vídeo)](https://www.coursera.org/learn/data-structures-optimizing-performance/lecture/p82sw/core-introduction-to-binary-search-trees)
- começa com tabela de símbolos e passa por aplicações de ABB
- [ ] [Introduction (video)](https://www.coursera.org/learn/data-structures/lecture/E7cXP/introduction) (Introdução (vídeo))
- [ ] [MIT (vídeo)](https://www.youtube.com/watch?v=9Jry5-82I68)
- C/C++:
- [ ] [Binary search tree - Implementation in C/C++ (video)](https://www.youtube.com/watch?v=COZK7NATh4k&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P&index=28)
- [ ] [BST implementation - memory allocation in stack and heap (video)](https://www.youtube.com/watch?v=hWokyBoo0aI&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P&index=29)
- [ ] [Find min and max element in a binary search tree (video)](https://www.youtube.com/watch?v=Ut90klNN264&index=30&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P)
- [ ] [Find height of a binary tree (video)](https://www.youtube.com/watch?v=_pnqMz5nrRs&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P&index=31)
- [ ] [Binary tree traversal - breadth-first and depth-first strategies (video)](https://www.youtube.com/watch?v=9RHO6jU--GU&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P&index=32)
- [ ] [Binary tree: Level Order Traversal (video)](https://www.youtube.com/watch?v=86g8jAQug04&index=33&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P)
- [ ] [Binary tree traversal: Preorder, Inorder, Postorder (video)](https://www.youtube.com/watch?v=gm8DUJJhmY4&index=34&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P)
- [ ] [Check if a binary tree is binary search tree or not (video)](https://www.youtube.com/watch?v=yEwSGhSsT0U&index=35&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P)
- [ ] [Delete a node from Binary Search Tree (video)](https://www.youtube.com/watch?v=gcULXE7ViZw&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P&index=36)
- [ ] [Inorder Successor in a binary search tree (video)](https://www.youtube.com/watch?v=5cPbNCrdotA&index=37&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P)
- [ ] [Binary search tree - Implementation in C/C++ (video)](https://www.youtube.com/watch?v=COZK7NATh4k&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P&index=28) (Árvore binária de busca - Implementação em C/C++ (vídeo))
- [ ] [BST implementation - memory allocation in stack and heap (video)](https://www.youtube.com/watch?v=hWokyBoo0aI&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P&index=29) (Implementação de ABB - alocação de memória estática (stack) e dinâmica (heap) (vídeo))
- [ ] [Find min and max element in a binary search tree (video)](https://www.youtube.com/watch?v=Ut90klNN264&index=30&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P) (Encontrar elementos min e max em uma árvore binária de busca (vídeo))
- [ ] [Find height of a binary tree (video)](https://www.youtube.com/watch?v=_pnqMz5nrRs&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P&index=31) (Encontrar altura de uma árvore binária (vídeo))
- [ ] [Binary tree traversal - breadth-first and depth-first strategies (video)](https://www.youtube.com/watch?v=9RHO6jU--GU&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P&index=32) (Percurso de uma árvore binária - estratégias de busca em largura e busca em profundidade (vídeo))
- [ ] [Binary tree: Level Order Traversal (video)](https://www.youtube.com/watch?v=86g8jAQug04&index=33&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P) (Árvore binária: Percurso de Ordens de Níveis (vídeo))
- [ ] [Binary tree traversal: Preorder, Inorder, Postorder (video)](https://www.youtube.com/watch?v=gm8DUJJhmY4&index=34&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P) (Percurso de árvore binária: Pré-ordem, Em-ordem (ordem simétrica), Pós-ordem (vídeo))
- [ ] [Check if a binary tree is binary search tree or not (video)](https://www.youtube.com/watch?v=yEwSGhSsT0U&index=35&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P) (Verificar se uma árvore binária é uma árvore binária de busca ou não (vídeo))
- [ ] [Delete a node from Binary Search Tree (video)](https://www.youtube.com/watch?v=gcULXE7ViZw&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P&index=36) (Deletar um nó de uma Árvore Binária de Busca (vídeo))
- [ ] [Inorder Successor in a binary search tree (video)](https://www.youtube.com/watch?v=5cPbNCrdotA&index=37&list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P) (Sucessor Em-ordem em uma árvore binária de busca (vídeo))
- [ ] Implementar:
- [ ] insert // insert value into tree
- [ ] get_node_count // get count of values stored
- [ ] print_values // prints the values in the tree, from min to max
- [ ] insert // insere um valor na árvore
- [ ] get_node_count // obtém contagem de valores armazenados
- [ ] print_values // exibe os valores na árvore, do min até o max
- [ ] delete_tree
- [ ] is_in_tree // returns true if given value exists in the tree
- [ ] get_height // returns the height in nodes (single node's height is 1)
- [ ] get_min // returns the minimum value stored in the tree
- [ ] get_max // returns the maximum value stored in the tree
- [ ] is_in_tree // retorna "true" se tal valor existir na árvore
- [ ] get_height // retorna a altura nos nós (altura de nó único é 1)
- [ ] get_min // retorna o valor mínimo armazenado na árvore
- [ ] get_max // retorna o valor máximo armazenado na árvore
- [ ] is_binary_search_tree
- [ ] delete_value
- [ ] get_successor // returns next-highest value in tree after given value, -1 if none

- ### Heap / Priority Queue / Binary Heap
- visualized as a tree, but is usually linear in storage (array, linked list)
- [ ] [Heap](https://en.wikipedia.org/wiki/Heap_(data_structure))
- [ ] [Introduction (video)](https://www.coursera.org/learn/data-structures/lecture/2OpTs/introduction)
- [ ] [Naive Implementations (video)](https://www.coursera.org/learn/data-structures/lecture/z3l9N/naive-implementations)
- [ ] [Binary Trees (video)](https://www.coursera.org/learn/data-structures/lecture/GRV2q/binary-trees)
- [ ] [Tree Height Remark (video)](https://www.coursera.org/learn/data-structures/supplement/S5xxz/tree-height-remark)
- [ ] [Basic Operations (video)](https://www.coursera.org/learn/data-structures/lecture/0g1dl/basic-operations)
- [ ] [Complete Binary Trees (video)](https://www.coursera.org/learn/data-structures/lecture/gl5Ni/complete-binary-trees)
- [ ] [Pseudocode (video)](https://www.coursera.org/learn/data-structures/lecture/HxQo9/pseudocode)
- [ ] [Heap Sort - jumps to start (video)](https://youtu.be/odNJmw5TOEE?list=PLFDnELG9dpVxQCxuD-9BSy2E7BWY3t5Sm&t=3291)
- [ ] [Heap Sort (video)](https://www.coursera.org/learn/data-structures/lecture/hSzMO/heap-sort)
- [ ] [Building a heap (video)](https://www.coursera.org/learn/data-structures/lecture/dwrOS/building-a-heap)
- [ ] [MIT: Heaps and Heap Sort (video)](https://www.youtube.com/watch?v=B7hVxCmfPtM&index=4&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb)
- [ ] [CS 61B Lecture 24: Priority Queues (video)](https://www.youtube.com/watch?v=yIUFT6AKBGE&index=24&list=PL4BBB74C7D2A1049C)
- [ ] [Linear Time BuildHeap (max-heap)](https://www.youtube.com/watch?v=MiyLo8adrWw)
- [ ] Implement a max-heap:
- [ ] get_successor // retorna o próximo maior valor na árvore após dado valor, -1 se não houver nenhum

- ### Memória Dinâmica (heap) / Filas Prioritárias / Memória Dinâmica Binária (heap binary)
- visualizada como uma árvore, mas geralmente é linear no armazenamento (array, lista ligada)
- [ ] [Heap](https://en.wikipedia.org/wiki/Heap_(data_structure)) (Memória DInâmica)
- [ ] [Introduction (video)](https://www.coursera.org/learn/data-structures/lecture/2OpTs/introduction) (Introdução (vídeo))
- [ ] [Naive Implementations (video)](https://www.coursera.org/learn/data-structures/lecture/z3l9N/naive-implementations) (Implementações Ingênuas (vídeo))
- [ ] [Binary Trees (video)](https://www.coursera.org/learn/data-structures/lecture/GRV2q/binary-trees) (Árvores Binárias (vídeo))
- [ ] [Tree Height Remark (video)](https://www.coursera.org/learn/data-structures/supplement/S5xxz/tree-height-remark) (Observações sobre Altura de Árvore (vídeo))
- [ ] [Basic Operations (video)](https://www.coursera.org/learn/data-structures/lecture/0g1dl/basic-operations) (Operações Básicas (vídeo))
- [ ] [Complete Binary Trees (video)](https://www.coursera.org/learn/data-structures/lecture/gl5Ni/complete-binary-trees) (Árvores Binárias Completas (vídeo))
- [ ] [Pseudocode (video)](https://www.coursera.org/learn/data-structures/lecture/HxQo9/pseudocode) (Pseudocódigo (vídeo))
- [ ] [Heap Sort - jumps to start (video)](https://youtu.be/odNJmw5TOEE?list=PLFDnELG9dpVxQCxuD-9BSy2E7BWY3t5Sm&t=3291) (Algoritmo de Ordenação heapsort - pula para o começo (vídeo))
- [ ] [Heap Sort (video)](https://www.coursera.org/learn/data-structures/lecture/hSzMO/heap-sort) (Algoritmo de Ordenação heapsort (vídeo))
- [ ] [Building a heap (video)](https://www.coursera.org/learn/data-structures/lecture/dwrOS/building-a-heap) (Construindo uma memória dinâmica (heap) (vídeo))
- [ ] [MIT: Heaps and Heap Sort (video)](https://www.youtube.com/watch?v=B7hVxCmfPtM&index=4&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb) (MIT: Memórias Dinâmias e heapsort (vídeo))
- [ ] [CS 61B Lecture 24: Priority Queues (video)](https://www.youtube.com/watch?v=yIUFT6AKBGE&index=24&list=PL4BBB74C7D2A1049C) (CS (Ciência da Computação) 61B Aula 24: Filas Prioritárias (vídeo))
- [ ] [Linear Time BuildHeap (max-heap)](https://www.youtube.com/watch?v=MiyLo8adrWw) (BuildHeap em Tempo Linear (heap máxima))
- [ ] Implementar uma heap máxima (max-heap):
- [ ] insert
- [ ] sift_up - needed for insert
- [ ] get_max - returns the max item, without removing it
- [ ] get_size() - return number of elements stored
- [ ] is_empty() - returns true if heap contains no elements
- [ ] extract_max - returns the max item, removing it
- [ ] sift_down - needed for extract_max
- [ ] remove(i) - removes item at index x
- [ ] heapify - create a heap from an array of elements, needed for heap_sort
- [ ] heap_sort() - take an unsorted array and turn it into a sorted array in-place using a max heap
- note: using a min heap instead would save operations, but double the space needed (cannot do in-place).
- [ ] sift_up - necessário insert
- [ ] get_max - retorna o item max (maior item), sem removê-lo
- [ ] get_size() - retorna o número de elementos armazenados
- [ ] is_empty() - retorna "true" se o heap não contém elementos
- [ ] extract_max - retorna o item max (maior item), removendo ele
- [ ] sift_down - necessário para extract_max
- [ ] remove(i) - remove o item no índice x
- [ ] heapify - cria um heap a partir de um array de elementos, necessário para heap_sort
- [ ] heap_sort() - pega um array não-ordenado e o transforma em um array ordenado "in-place" (sem gerar um novo array) usando uma heap máxima (max-heap)
- nota: usando uma heap mínima (min-heap) ao invés de uma heap máxima (max-heap) poderia salvar operações, mas duplicar o espaço necessário (não é possível fazer "in-place")

## Sorting

Expand Down