Commit graph

220 commits

Author SHA1 Message Date
Jessica Kwok
4bd9206f01 Add hash solution 2021-05-14 16:37:12 -07:00
Vitor Oliveira
0a83001a2a
remove hash from /arrays folder 2021-05-14 09:44:08 -07:00
Jessica Kwok
b4c2e2e6b0 Add good pairs hash solution into hash_table section and directory 2021-05-14 09:30:49 -07:00
Jessica Kwok
0386dfd0d1 Add uncommon words challenge 2021-05-13 12:09:01 -07:00
Jessica Kwok
7228e29921
Merge branch 'master' into jk-good-pairs 2021-05-12 09:00:20 -07:00
Jessica Kwok
33e3d2b456 Add hash approach 2021-05-12 08:57:56 -07:00
Jessica Kwok
da897fe6ad Add brute force approach 2021-05-07 16:44:28 -07:00
Leo
7623e08e48 add shortest word distance algorithm 2021-05-05 13:58:43 -03:00
Vitor Oliveira
b48c1d5479
Update data_structures/queues/circular_queue.rb 2021-05-01 10:28:09 -07:00
Vijay Siva
ba2e881edc Add circular queue 2021-05-01 12:40:14 -04:00
Vitor Oliveira
d935a103b1
Merge pull request #134 from jsca-kwok/jk-sudoku
Add valid sudoku board algorithm
2021-04-28 18:28:08 -07:00
Jessica Kwok
010e5ff96a Added good pairs challenge 2021-04-26 14:03:15 -07:00
Jessica Kwok
f964954529 Add sets solution 2021-04-26 13:59:15 -07:00
Jessica Kwok
79ca68d958 Add brute force solution 2021-04-26 13:59:02 -07:00
Jessica Kwok
5c1580fc10
Update data_structures/arrays/intersection.rb
Co-authored-by: Vitor Oliveira <vbrazo@gmail.com>
2021-04-19 15:55:22 -07:00
Jessica Kwok
db2d1b74a2
Update data_structures/arrays/intersection.rb
Co-authored-by: Vitor Oliveira <vbrazo@gmail.com>
2021-04-19 15:54:48 -07:00
Jessica Kwok
211bb2c23f Added sudoku challenge 2021-04-16 16:57:39 -07:00
Jessica Kwok
25d76f8944
Merge branch 'master' into jk-intersection 2021-04-16 16:36:10 -07:00
Jessica Kwok
f1c72d43ba Merge remote-tracking branch 'origin/master' into jk-intersection 2021-04-16 16:35:08 -07:00
Jessica Kwok
b0287375a4 Add two pointers solution 2021-04-16 16:33:19 -07:00
Jessica Kwok
7b20bca2f8 Add hash solution 2021-04-16 16:21:49 -07:00
Jessica Kwok
2c11993806 Add brute force solution 2021-04-16 14:12:30 -07:00
Vitor Oliveira
b101ef25d7
Update and rename arrays_intersection.rb to sorted_arrays_intersection.rb 2021-04-15 18:00:29 -07:00
Vitor Oliveira
da89bae931
Update arrays_intersection.rb 2021-04-15 17:27:27 -07:00
Vitor Oliveira
50e6dc6f86 Arrays intersection: two-pointer approach 2021-04-15 17:25:30 -07:00
Vitor Oliveira
e230521122
Merge pull request #125 from TheAlgorithms/array-intersection
Arrays intersection
2021-04-12 10:24:52 -07:00
Vitor Oliveira
016911d782
Merge pull request #126 from TheAlgorithms/next-greater-element 2021-04-12 09:50:47 -07:00
Vitor Oliveira
20d5ea3b6d
Update next_greater_element.rb 2021-04-10 10:49:41 -07:00
Vitor Oliveira
4d9d7ca1cd
add complexity analysis 2021-04-10 10:46:55 -07:00
Vitor Oliveira
1c9a26f389 Minor changes 2021-04-10 10:41:01 -07:00
Vitor Oliveira
ce0d1863a2 Next greater element 2021-04-10 10:38:43 -07:00
Vitor Oliveira
2197a587fb
Update arrays_intersection.rb 2021-04-10 10:15:00 -07:00
Vitor Oliveira
745b66227b Minor changes 2021-04-10 10:05:08 -07:00
Vitor Oliveira
fe4e56e8a4 Move to correct path 2021-04-10 09:57:39 -07:00
Vitor Oliveira
9fbd75fa66 Add hash table approach 2021-04-10 09:56:05 -07:00
Vitor Oliveira
7b49aac8a7
Merge pull request #123 from jsca-kwok/jk-palindrome
Add palindrome algorithm
2021-04-09 21:08:18 -07:00
Vitor Oliveira
49db26c56b
Update data_structures/arrays/strings/palindrome.rb 2021-04-09 21:07:57 -07:00
Vitor Oliveira
bd6b1067c0
Update data_structures/arrays/strings/palindrome.rb 2021-04-09 21:07:54 -07:00
Jessica Kwok
7655003b6c Add solution using two pointers 2021-04-05 14:31:57 -07:00
Jessica Kwok
6c7b37ab76 Add solution using a reversed array 2021-04-05 14:08:23 -07:00
Jessica Kwok
04a4c9aaed Add solution using .reverse 2021-04-05 13:57:41 -07:00
Jessica Kwok
c2bd60c223 Add palindrome challenge 2021-04-01 09:50:27 -07:00
Vitor Oliveira
515b076e61
remove duplication 2021-04-01 09:42:45 -07:00
Vitor Oliveira
434e72a4f7 Add very simple tests 2021-04-01 09:38:27 -07:00
Vitor Oliveira
44c3208454 Add another hash table approach 2021-04-01 09:36:52 -07:00
Vitor Oliveira
dc533283a2 Add hash table approach 2021-04-01 09:36:46 -07:00
Vitor Oliveira
6b8529a1a6
Update anagram_checker.rb 2021-03-31 19:05:51 -07:00
Vitor Oliveira
ad959fcfb0 Minor changes 2021-03-31 19:05:00 -07:00
Vitor Oliveira
4674c2d97b Valid anagram: hash table approach 2021-03-31 19:02:57 -07:00
Vitor Oliveira
a93d5cc072
Update data_structures/arrays/strings/anagram_checker.rb 2021-03-31 18:38:01 -07:00
Vitor Oliveira
3bc81b8195
Update data_structures/arrays/strings/anagram_checker.rb 2021-03-31 18:37:57 -07:00
Jessica Kwok
2fe1098805 Add intersection challenge 2021-03-31 16:40:23 -07:00
Jessica Kwok
6c785524fb Add sort and compare solution 2021-03-31 16:34:06 -07:00
Jessica Kwok
f7ac1a7725 Merge branch 'master' into jk-anagram 2021-03-30 14:06:41 -07:00
Vitor Oliveira
f6a84ea326 Move more algos to hash table folders 2021-03-29 15:37:02 -07:00
Vitor Oliveira
57a46a8271 Move two_sum to hash table folder 2021-03-29 15:35:18 -07:00
Vitor Oliveira
66756bf5d4 Move remove_vowels to strings folder 2021-03-29 15:33:57 -07:00
Vitor Oliveira
3270667f8e Move algorithsm to appropriate folder 2021-03-29 14:52:06 -07:00
Vitor Oliveira
7d1f6659ff
Merge branch 'master' into jk-remove-vowels 2021-03-29 14:37:30 -07:00
Vitor Oliveira
7f60452c71
Merge branch 'master' into jk-shuffle-array 2021-03-29 14:34:55 -07:00
Vitor Oliveira
5f46625f99
Merge pull request #109 from jsca-kwok/jk-richest-customer
Finding richest customer wealth: brute force and hash table approaches
2021-03-29 14:34:16 -07:00
Vitor Oliveira
fded3fa4df Move approach to hash_table folder 2021-03-29 14:33:12 -07:00
Jessica Kwok
d68ae157cd Merge branch 'jk-shuffle-array' of https://github.com/jsca-kwok/Ruby into jk-shuffle-array 2021-03-29 10:22:23 -07:00
Jessica Kwok
ad685ac4ee Add two pointers approach 2021-03-29 10:22:09 -07:00
Jessica Kwok
31d9e8e0a2 Change print to puts 2021-03-29 10:05:15 -07:00
Jessica Kwok
5bf141f64f
Update data_structures/arrays/remove_vowels.rb
Co-authored-by: vzvu3k6k <vzvu3k6k@gmail.com>
2021-03-29 10:00:33 -07:00
Jessica Kwok
5ed65199d7
Update data_structures/arrays/remove_vowels.rb
Co-authored-by: vzvu3k6k <vzvu3k6k@gmail.com>
2021-03-29 09:59:32 -07:00
Jessica Kwok
08e35de175
Update data_structures/arrays/richest_customer_wealth.rb
Co-authored-by: Vitor Oliveira <vbrazo@gmail.com>
2021-03-26 10:54:37 -07:00
Jessica Kwok
1e4d510748 Add anagram checker challenge 2021-03-26 10:43:21 -07:00
Jessica Kwok
89a7af33e1 Add solution using Ruby .delete() method 2021-03-26 10:34:28 -07:00
Jessica Kwok
27abece8ad Add solution using regex 2021-03-26 10:22:16 -07:00
Jessica Kwok
8bafd5c74a Add brute force solution 2021-03-26 10:03:45 -07:00
Jessica Kwok
b4806f0903 Add remove vowels challenge 2021-03-26 09:48:52 -07:00
Jessica Kwok
5e7efbb73d Add hash solution 2021-03-25 14:48:00 -07:00
Jessica Kwok
dafb096e65 Add solution using hash 2021-03-25 14:38:13 -07:00
Jessica Kwok
7c6b226eac Add brute force solution 2021-03-25 14:29:34 -07:00
Jessica Kwok
187cdac8b1 Add brute force solution 2021-03-25 10:08:15 -07:00
Jessica Kwok
6a6d0b675a Add challenge 2021-03-24 08:19:11 -07:00
Jessica Kwok
3bf3552283
Merge branch 'master' into jk-shuffle-array 2021-03-24 08:14:16 -07:00
Jessica Kwok
a8f816f984 Add solution using Ruby methods 2021-03-24 08:12:31 -07:00
Jessica Kwok
16fd8c756f Add solution using a new array 2021-03-23 08:42:36 -07:00
Jessica Kwok
7b6edea968 Fix time complexity 2021-03-23 08:05:54 -07:00
Jessica Kwok
989e20d15e Add shuffle array challenge 2021-03-22 09:00:58 -07:00
Jessica Kwok
f4761529d3 Merge branch 'master' of https://github.com/TheAlgorithms/Ruby into jk-single-number 2021-03-22 08:58:11 -07:00
Jessica Kwok
e8ded18897 Add solution using Ruby .count() 2021-03-22 08:53:26 -07:00
Jessica Kwok
e70ba583a2 Add solution using hash map 2021-03-22 08:07:14 -07:00
Vitor Oliveira
9a7313d669 move to array folder 2021-03-20 11:10:25 -07:00
Jessica Kwok
935faca63a Add single number challenge 2021-03-19 16:26:23 -07:00
Vitor Oliveira
2171cad18e Mathematical: Digital Root approach 2021-03-18 17:00:54 -07:00
Jessica Kwok
fd3add587c Add solution without recursion 2021-03-18 13:15:19 -07:00
Jessica Kwok
5588587bc1 Add recursion solution 2021-03-18 08:55:05 -07:00
Jessica Kwok
899eaf1d3a Add add digits challenge 2021-03-17 08:17:08 -07:00
Vitor Oliveira
e4b8f4ae8b fix typo 2021-03-15 22:07:44 -07:00
Vitor Oliveira
74645b3e8f add tests 2021-03-15 22:00:08 -07:00
Vitor Oliveira
9576b18a61 Add another approach 2021-03-15 21:57:25 -07:00
Vitor Oliveira
d5877acb14 minor change 2021-03-15 21:50:51 -07:00
Vitor Oliveira
afef73db10 Add complexity analysis 2021-03-15 21:42:53 -07:00
Vitor Oliveira
ad35c2398c Remove Element: two pointers approach 2021-03-15 21:41:43 -07:00
Jessica Kwok
1f95ad15df Add solution using delete_at Ruby method 2021-03-15 10:08:31 -07:00
Jessica Kwok
ba03727fb6 Add solution using delete_if Ruby method 2021-03-15 09:52:22 -07:00