Commit graph

139 commits

Author SHA1 Message Date
Vitor Oliveira
8bb781f790 Minor fixes 2021-09-03 13:24:58 -07:00
Vitor Oliveira
f6382bfb15
kill space 2021-09-03 12:37:45 -07:00
Vitor Oliveira
aecd3739f0
add output for max_sub_array algorithm 2021-09-03 12:37:05 -07:00
Vitor Oliveira
b7d623a303
add output for max_product algorithm 2021-09-03 12:35:10 -07:00
Vitor Oliveira
bd92198fc8
add formatting and example outputs for quick debugging 2021-09-03 12:33:56 -07:00
sidaksohi
8519e419fa
Update maximum_subarray.rb 2021-08-25 15:41:20 -07:00
sidaksohi
e676e283ea Add array solutions with descriptions 2021-08-22 15:45:08 -07:00
Vitor Oliveira
f0a155e66f
Merge pull request #160 from jsca-kwok/jk-max-69-number
Add solution for max 69 number algorithm
2021-08-22 14:24:33 -07:00
Vitor Oliveira
eecebfe30a
Merge pull request #162 from jsca-kwok/jk-palindrome
Add almost palindrome algorithm
2021-07-02 12:53:59 -07:00
Vitor Oliveira
a0952eb7b2
add space complexity 2021-07-02 12:52:55 -07:00
Jessica Kwok
b40fe95c43 Extract split method from loop 2021-07-02 12:45:20 -07:00
Jessica Kwok
2375a7f97f Merge branch 'jk-palindrome' of https://github.com/jsca-kwok/Ruby into jk-palindrome 2021-06-29 14:04:08 -07:00
Jessica Kwok
6c72cd24a1 Add two pointers approach 2021-06-29 14:00:08 -07:00
Jessica Kwok
66859e8491 Add palindrome challenge 2021-06-24 13:37:00 -07:00
Jessica Kwok
47efd0124c
Merge branch 'master' into jk-max-69-number 2021-06-15 16:25:57 -07:00
Jessica Kwok
789f5fc03c Add logical approach 2021-06-15 16:24:34 -07:00
Jessica Kwok
1ef5a9ab07 Add max 69 number challenge 2021-06-15 16:14:06 -07:00
Vitor Oliveira
0a83001a2a
remove hash from /arrays folder 2021-05-14 09:44:08 -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
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
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
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
4674c2d97b Valid anagram: hash table approach 2021-03-31 19:02:57 -07:00