Commit Graph

129 Commits

Author SHA1 Message Date
NikitaLipatov
8a0a191975 03 & 04 exercises (#96) 2018-12-28 08:25:01 -08:00
Yuriy Marad
2bf2ab5062 Add PHP example based on DS extension for chapter 08 - greedy algorithms (#97)
* Add PHP example based on DS extension for chapter 08 - greedy algorithms

* Add code formatting

* Add code formatting / 2
2018-12-28 08:24:40 -08:00
Timur Tarasenko
ac08df2ee7 Oralce PL/SQL examples of recursion (#91) 2018-10-18 08:27:58 -07:00
i-s-o-g-r-a-m
31412a0b96 Add binary search in OCaml (#90) 2018-10-18 08:27:27 -07:00
Alexander Berezhnoy
be4a420dd5 add lost semicolons (#89) 2018-10-18 08:26:39 -07:00
Johnny Bell
3e887a6d3c updated the 04_quicksort/javascript/01_loop_sum.js to a working soloution (#88) 2018-10-18 08:26:17 -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
a5fe9178dd Add 06_breadth-first_search Golang example (#81) 2018-08-24 11:20:41 -07:00
Ramit Mittal
2ab2e9c181 changed python2 print statements to python3 in 07_dijkstras_algorithm (#82)
* Resolve Issue #40: Changed more examples to use python3 syntax

* corrected selection sort python

* 07 dijkstras changed python2 print statement
2018-08-24 11:20:10 -07:00
Vish511
57dd4e1756 Implementation of breadth first search in Golang (#83)
* Implementation of breadth first search in Golang

* fixed package name in go lang implementation of breadth first search

* fixed package name in go lang implementation of breadth first search
2018-08-24 11:19:39 -07:00
Aditya Bhargava
ba1e3660f1 image fix 2018-08-24 11:17:02 -07:00
Aditya Bhargava
a98e0d0cc2 image 2018-08-24 11:16:29 -07:00
Aditya Bhargava
f3805c8a3f knn example with digit recognition 2018-08-24 11:12:22 -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
Ian Shiundu
fb0d9dccfd Update check_voter method for Scala (#79)
* add IDE specific git ignore files

* add log for new user
2018-07-18 16:03:54 -07:00
Денис
48f971e361 i start from 1 (#78) 2018-07-18 16:03:20 -07:00
Dasha Korneichuk
a15b071134 Fix typos (#77)
* Fix typo

* Update 01_price_of_groceries.swift
2018-07-18 16:02:14 -07:00
Felix Yan
c55036458e Fix a typo in 01_selection_sort.swift (#76) 2018-07-18 16:01:51 -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
chenyang929
d13ab114f8 Update 01_breadth-first_search.py (#75)
change line 24 to make more pythonic style
2018-05-15 11:54:59 -07:00
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