Commit Graph

33 Commits

Author SHA1 Message Date
Alex
c745f5d2a7 add code for chapters 1 and 2 in ts (#102) 2019-03-28 14:51:48 -07:00
Massoud Afrashteh
62c3b39668 Add julialang binary search sample (#107)
* Add julialang binary search sample

* Add unit test
2019-03-28 14:50:48 -07:00
Oleg A. Glushko
06ee65d9e5 Please, merge my PowerShell examples for all chapters (#106)
* PowerShell 01_introduction_to_algorithms example

* PowerShell 02_selection_sort example

* PowerShell 03_recursion examples

* PowerShell 04_quicksort examples

* PowerShell 05_hash_tables examples

* PowerShell 06_breadth-first_search example

* PowerShell 07_dijkstras_algorithm example

* PowerShell 08_greedy_algorithms example

* Powershell 09_dynamic_programming example
2019-03-28 14:49:20 -07:00
i-s-o-g-r-a-m
31412a0b96 Add binary search in OCaml (#90) 2018-10-18 08:27:27 -07:00
umatbro
7dc9e95d2a add c++11 (#87)
* binary search c++

* selection sort c++11

* c++ recursive countdown

* c++ recursion

* c++ quicksort

* rename folder names to c++11

* add another version of binary_search function

* c++11 hash tables

* c++11 breadth-first search
2018-10-18 08:25:54 -07:00
Vidit
38f5b2792e Added c++ implementation (#85)
* Added c++ implementation

* Added Bfs implementation in c++
2018-10-18 08:25:23 -07:00
Artem Solovev
0d5d0164ce Added more implementations (JS) (#67)
* Added recursive binary search (JS)

* Added recursive selection sorting

* Added another loop implementation sum func by reduce (JS)

* Recursion reduced by one iteration

* Recursive binary search in ES6 added to appropriate folder

* JS files ordered by standards (ES4/ES6)

* Added hashtable implementation in JS

* Fixed typo with LENGTH prop

* Added Euclidian algorithm for two numbers and set of them

* Added universal selection sort

* Commented output

* Added ES6 version of Euclidean algorithm

* Converted from ES6 to ES5

* #69 Added search for LCS

* #69 added levenstein algorithm

* Removed excessive property

* Removed excessive file

* Removed excessive function calls

* Removed excessive file

* Removed excessive file

* Renamed

* Fixed indentation
2018-08-24 11:21:54 -07:00
sulinehk
e206a13153 Fix BinarySearch.go style by gofmt (#80)
* Fix BinarySearch.go style by gofmt

* Fix longest_common_subsequence.go style by gofmt
2018-07-25 11:01:40 -07:00
Arctic Wolf
68a20e35eb Update 01_binary_search.c (#74) 2018-07-18 16:01:24 -07:00
Xinhai Wang
522efcbc31 Update BinarySearch.go (#73)
fix bug(panic for empty array)
2018-07-18 16:00:44 -07:00
freedom5566
9744af50ed Add 01_binary_search.c (#68)
* Add 01_binary_search.c

* Update use sizeof and floor
2018-04-29 08:26:35 -07:00
biosta
f24b9a6e35 Binary search and selection sort in Perl
* Create 01_binary_search.pl

* Typo fixed in 01_binary_search.pl

* Create 01_selection_sort.pl
2018-04-20 08:21:28 -07:00
Alterevit
f47666f099 add binary search on kotlin 2018-04-20 08:20:32 -07:00
Evgeny Garlukovich
8ed03e73aa Add Elixir example for binary search 2018-04-20 08:18:52 -07: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
ryn1x
7d48d29139 add perl6 code for chapters 1-4 (#49) 2018-01-04 06:46:31 -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
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
zhangjiong
e3016960ee Update 01_binary_search.lua 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
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
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
vdelacruzjardon
0aec97dbf2 Examples in Gambas (#5) by @vdelacruzjardon 2016-09-16 11:41:52 -07:00
Kevin Nguyen
1b3370e864 code for chapter 1 in javascript 2016-06-15 22:34:18 -07:00
Leon Rische
2d84d26540 remove trailing whitespace 2016-03-03 15:21:21 +01:00
Leon Rische
a1a41e9097 code for chapter 1 in ruby 2016-03-03 15:05:30 +01:00
Aditya Bhargava
f985d33eb6 first commit: code for chapter 1 2016-03-02 14:03:34 -08:00