306 Commits

Author SHA1 Message Date
Ramit Mittal
b190829dfb resolve issue 70, correction in python selection sort (#72)
* Resolve Issue #40: Changed more examples to use python3 syntax

* corrected selection sort python
2018-04-29 08:27:42 -07:00
biosta
67291c451f Examples for Chapter 3 written in Perl 5 (#71)
* Create 01_countdown.pl

Recursion example #1 written in Perl 5

* Create 02_greet.pl

Recirsion example #2 written in Perl 5

* Create 03_factorial.pl

Recursion example #3 written in Perl 5
2018-04-29 08:27:14 -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
ea74644c95 add binary search on kotlin 2018-04-20 08:20:32 -07:00
Alterevit
f47666f099 add binary search on kotlin 2018-04-20 08:20:32 -07:00
Alterevit
9723ed03cf add selection sort on kotlin 2018-04-20 08:20:32 -07:00
Evgeny Garlukovich
2ff9912e77 Add Elixir example for longest common subsequence 2018-04-20 08:18:52 -07:00
Evgeny Garlukovich
51c5cfb058 Add Elixir example for greedy algorithms 2018-04-20 08:18:52 -07:00
Evgeny Garlukovich
434fb6212f Add Elixir example for Dijkstra's algorithm 2018-04-20 08:18:52 -07:00
Evgeny Garlukovich
e8c1881566 Add Elixir example for breadth-first search 2018-04-20 08:18:52 -07:00
Evgeny Garlukovich
0c9424455e Add Elixir examples for hash tables 2018-04-20 08:18:52 -07:00
Evgeny Garlukovich
5d965d0b8a Add Elixir examples for quicksort 2018-04-20 08:18:52 -07:00
Evgeny Garlukovich
687d3fece6 Add Elixir examples for recursion 2018-04-20 08:18:52 -07:00
Evgeny Garlukovich
fa35ae875d Add Elixir example for selection sort 2018-04-20 08:18:52 -07:00
Evgeny Garlukovich
8ed03e73aa Add Elixir example for binary search 2018-04-20 08:18:52 -07:00
Lokesh Jadhav
bb4a8638f1 Typo in comment: Big O for selection sort (#61) 2018-03-19 09:51:48 -07:00
miholeus
c7c8827628 php dijkstras algorithm (#60) 2018-03-19 09:51:31 -07:00
Wenxuan Zhou
bff0bbaaa2 Update 01_selection_sort.py (#59)
remove one line of code which is redundant
2018-03-19 09:51:07 -07:00
miholeus
7b3eab5f5a php example of breadth-firsth search (#58) 2018-03-19 09:49:30 -07:00
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