Commit Graph

86 Commits

Author SHA1 Message Date
Ramit Mittal
2f939182ae Resolve Issue #40: Changed more examples to use python3 syntax (#56) 2018-03-19 09:48:21 -07:00
sliw
f9497eb344 Update Js (ES5, ES6) to make them consistent and explicit (#54)
* Update the names to make ES5 and ES6 solutions more consistent

I basically change the names to make the function more explicit and clear:

1. list to sortedList
2. mid to middle

* Revert "Update the names to make ES5 and ES6 solutions more consistent"

This reverts commit 46d7514636420eb3b3c581665eaa3c0aca9df99d.

* [selection sort] update Js (ES5, ES6) to make them more consistent and explicit
2018-02-03 11:59:16 -08:00
WangX
3474a1069f Update 04_recursive_max.py (#52)
Avoid error while len(lst) is 0 and 1
2018-02-03 11:57:39 -08:00
Aliaksandr
b515434b3f Fix haskell binarysearch (#51) 2018-02-03 11:56:41 -08:00
Danh Nguyen
1fa164c40e Resolve Issue #40: Python 2 print statements changed to use Python 3 print function (#50)
* Update 01_selection_sort.py

Updated last print statement for Python 3 print function.

* Update 01_countdown.py

Updated print statement to print function for Python 3.

* Update 05_quicksort.py

Updated print statement to print function for Python 3.

* Update 01_price_of_groceries.py

Condensed dictionary creation into one line, edited print statement to a print function for Python 3.

* Update 01_set_covering.py

Changed print statement to print function for Python 3.

* Update 01_binary_search.py

Changed print statements to print function for Python 3.
2018-02-03 11:15:07 -08:00
kde0820
a010e5c715 C selection sort (#46)
* Add C example for recursion

* Add loop_sum in c

* Add recursive_sum in c

* Add quicksort in c

* Add selection sort in c
2018-01-04 06:47:49 -08:00
Seoungtae Kim
5703ee1e7a golang about 08_greedy_algorithms (#47)
* recursion_Golang

* go_fmt

* selection_sort_Golang

* rm-golang

* selection_sort_Golang

* selection_sort_Golang

* selection_sort_Golang

* dynamic_golang

* golang 05_hash_tables 02_check_voter.go

* golang 05_hash_tables 01_price_of_groceries

* add 01_loop_sum in 04_quicksort

* 02_recursive_sum in 04_quicksort

* 03_recursive_count in 04_quicksort

* 04_recursive_max in 04_quicksort

* 05_quicksort in 04_quicksort

* 08_greedy_algorithms for golang
2018-01-04 06:47:13 -08:00
ryn1x
7d48d29139 add perl6 code for chapters 1-4 (#49) 2018-01-04 06:46:31 -08:00
Dmitrii Rytikov
dd0100e471 fix algoritm (#45) 2017-12-02 12:15:23 -08:00
Seoungtae Kim
3499ab656a golang about 04_quicksort (#43)
* recursion_Golang

* go_fmt

* selection_sort_Golang

* rm-golang

* selection_sort_Golang

* selection_sort_Golang

* selection_sort_Golang

* dynamic_golang

* golang 05_hash_tables 02_check_voter.go

* golang 05_hash_tables 01_price_of_groceries

* add 01_loop_sum in 04_quicksort

* 02_recursive_sum in 04_quicksort

* 03_recursive_count in 04_quicksort

* 04_recursive_max in 04_quicksort

* 05_quicksort in 04_quicksort
2017-12-01 16:33:44 -08:00
kde0820
cdec985db1 C quicksort (#44)
* Add C example for recursion

* Add loop_sum in c

* Add recursive_sum in c

* Add quicksort in c
2017-12-01 16:33:23 -08:00
Seoungtae Kim
24b6376d94 golang about 05_hash_tables (#42)
* recursion_Golang

* go_fmt

* selection_sort_Golang

* rm-golang

* selection_sort_Golang

* selection_sort_Golang

* selection_sort_Golang

* dynamic_golang

* golang 05_hash_tables 02_check_voter.go

* golang 05_hash_tables 01_price_of_groceries
2017-11-20 08:05:40 -08:00
Bijoy Thomas
542f4ab0a0 Added Haskell example for Dijkstras algorithm (#18)
* Adding binary search example for Haskell

* Adding selection sort example in Haskell

* Adding Haskell examples for chapter 3

* Adding examples for chapter 4

* Adding examples for chapter 5

* Adding git ignore

* Add Haskell example for BFS

* resetting

* Adding haskell example for dijkstras algorithm

* Adding Haskell example for chapter 8

* Adding power set based solution for set covering problem

* Adding Haskell examples for chap 9
2017-11-13 08:16:12 -08:00
Seoungtae Kim
1ab56fce62 Selection_Sort Golang (#35)
* recursion_Golang

* go_fmt

* selection_sort_Golang

* rm-golang

* selection_sort_Golang

* selection_sort_Golang

* selection_sort_Golang

* dynamic_golang
2017-11-13 08:14:44 -08:00
zhangjiongwx
d0ac45bcde Add Lua code for chapter 6-9 (#36)
* Add Lua code for chapter 6

* Add Lua code for chapter 7

* Add Lua code for chapter 8

* Add Lua code for chapter 9
2017-11-13 08:14:24 -08:00
Yossi Adler
ec2890a93d Add ES6 Examples to all chapters (#38)
* add ES6 example for binary search

* add ES6 example for selection sort

* add ES6 example for countdown

* add ES6 example for greet

* add ES6 example for factorial

* edit ES6 example for quicksort

* add ES6 example for loop sum

* add ES6 example for recursive sum

* add ES6 example for recursive count

* add ES6 example for recursive max

* add ES6 example for price of groceries

* add ES6 example for check voter

* add ES6 example for breadth-first search

* add ES6 example for dijkstras algorithm

* edit ES6 example for dijkstras algorithm

* edit ES6 example for set covering

* add ES6 example for longest common subsequence
2017-11-13 08:12:59 -08:00
Vendin
1a81d3e6b2 Hash tables for PHP (#39) 2017-11-13 08:12:01 -08:00
kde0820
b88af07fd0 Add C example for recursion (#41) 2017-11-13 08:11:41 -08:00
seong954t
38d50415e8 recursion_Golang (#33)
* recursion_Golang

* go_fmt
2017-10-15 13:31:56 -07:00
Rytikov Dmitrii
88cf645af9 add es6 code for breadth-first-search 2017-10-13 08:38:23 -07:00
chase-g
eec9c310ff Adding Scala example for Chapter 2 (#31)
* Add files via upload

* Update 01_countdown.scala

* Update 02_greet.scala

* Update 02_greet.scala

* Create scala

* Delete scala

* Add files via upload

* Add files via upload

* Add files via upload

* Update 01_selection_sort.scala

* Add files via upload
2017-10-13 08:37:51 -07:00
chase-g
7d6d36ccb2 Adding Scala examples for Chapter 4 and Chapter 5 (#30)
* Add files via upload

* Update 01_countdown.scala

* Update 02_greet.scala

* Update 02_greet.scala

* Create scala

* Delete scala

* Add files via upload

* Add files via upload
2017-09-26 10:40:43 -07:00
Vladislav Khvostov
d76298722f Create quicksort.js 2017-09-26 10:40:15 -07:00
chase-g
44f8151e11 Adding Scala examples for Chapter 3 (#28)
* Add files via upload

* Update 01_countdown.scala

* Update 02_greet.scala

* Update 02_greet.scala
2017-09-25 17:29:03 -07:00
vendin
495a648a6a Adding PHP examples 2017-09-25 09:57:26 -07:00
Alexander R. Torrijos
8ec4dc010b Added PHP selection sort implementation 2017-09-07 09:43:48 -04:00
Pablo Paciello
885c5f8b19 Update 04_recursive_max.swift
It wasn't working when the array was empty or when it had only one element.
2017-08-27 14:26:34 -04:00
zhangjiong
86785a0659 Add Lua code for chapter 5 2017-08-27 14:25:58 -04:00
zhangjiong
5f2626c91b Add Lua code for chapter 4 2017-08-27 14:25:58 -04:00
zhangjiong
e3016960ee Update 01_binary_search.lua 2017-08-27 14:25:58 -04:00
zhangjiong
525ff6c314 Add Lua code for chapter 3 2017-08-27 14:25:58 -04:00
zhangjiong
88840a470f Add Lua code for chapter 2 2017-08-27 14:25:58 -04:00
zhangjiong
dff0f33447 Add Lua code for chapter 1 2017-08-27 14:25:58 -04:00
Prasanna Kanagasabai
429710a090 Binary search implementation in golang
Binary search implementation in golang
2017-07-19 19:35:55 -04:00
yepstepz
67dc8de543 Added examples with diffing two words for chapter 09_dynamic_programming 2017-06-24 11:45:53 -04:00
Yury Polshchikov
0a2ed9e4bb Update LongestCommonSubsequence.java
for example from the book with words 'fish' and 'fosh' where is a mistake.
2017-06-11 19:16:08 -04:00
Aditya Bhargava
468fda77a2 clean up javascript files 2017-06-11 16:15:26 -07:00
Bijoy Thomas
6f78bdf3d7 Adding Haskell examples (#17)
* Adding binary search example for Haskell

* Adding selection sort example in Haskell

* Adding Haskell examples for chapter 3

* Adding examples for chapter 4

* Adding examples for chapter 5

* Adding git ignore

* Add Haskell example for BFS
2017-06-11 19:12:48 -04:00
itadder
c5c2563d05 Powershell Version of Binary Search (#15)
* Powershell Version of Binary Search
2017-05-19 15:18:08 -04:00
Yury Polshchikov
e4b95bd6c4 Update SelectionSort2.java
old version of sort with array was with mistake in array size in line 7. Also findSmallest method each time accepted array with already finded smallest
2017-05-14 15:31:54 -04:00
invisible73
7491aa5890 Create 01_binary_search.php (#13) 2017-04-06 07:33:16 -07:00
Oleh Novikov
4631b7a156 add examples in java 8 (#12)
* code for chapters 3-9 in Java

* code for chapters 1 in Java

* code for chapter 2 in Java

* missing CheckVoter for chapter 5 in Java

* add missing sample output for SetCovering as a comment
2017-03-20 09:06:45 -07:00
Anthony Marchenko
12265a8c61 Add examples on Swift 3.0.2 (#11)
* 01_binary_search Swift 3.0.2

* 01_binary_search Swift 3.0.2

* add Chapter 2 - 01_selection_sort Swift 3.0.2 example

* 01_binary_search cosmetic note updates Swift 3.0.2

* 03_recursion Swift 3.0.2 examples

* 04_quicksort Swift 3.0.2 examples

* fix typo on quicksort example. Swift 3.0.2

* add  05_hash_tables examples on Swift 3.0.2

* add 01_breadth-first_search Swift 3.0.2 example

* 01_breadth-first_search fixing typo Swift 3.0.2

* add 01_dijkstras_algorithm on Swift 3.0.2

* add 08_greedy_algorithms Swift 3.0.2 example

* 01_longest_common_subsequence Swift 3.0.2 example
2017-03-15 16:05:38 -07:00
Jim Vaughan
62ed616954 add csharp examples (#10) 2016-11-07 13:43:30 -08:00
Aditya Bhargava
c3396b8b0a link to errata page 2016-10-30 06:23:05 -07:00
vdelacruzjardon
0aec97dbf2 Examples in Gambas (#5) by @vdelacruzjardon 2016-09-16 11:41:52 -07:00
Aditya Bhargava
e2a4153e80 more errata 2016-08-22 12:06:43 -07:00
Aditya Bhargava
18dbf68c43 errata update 2016-07-25 14:33:22 -07:00
Aditya Bhargava
cbac1989d6 errata 2016-07-18 11:51:55 -07:00
Aditya Bhargava
67ddd52b13 Merge pull request #4 from kevinwin/master
javascript code for grokking_algorithms [ch 2 - 9]
2016-06-22 07:22:50 -07:00