diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-11-14 06:44:59 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-11-14 06:47:46 +0100 |
commit | 0bc44a8bcf77a81677d8257eb5c4190ff5d5dd73 (patch) | |
tree | 132464805ee5c6778a423ea6ec2792e0a6c79f76 /04-algorithms_on_strings/02-burrows_wheeler/01-bwt/bwt.cpp | |
parent | 26e4da9f87a7330d96bbeea0d47d875d3a96b1f8 (diff) | |
download | coursera-0bc44a8bcf77a81677d8257eb5c4190ff5d5dd73.zip coursera-0bc44a8bcf77a81677d8257eb5c4190ff5d5dd73.tar.gz |
Algorithms : add 04-algorithms_on_strings 02-burrows_wheeler
Diffstat (limited to '04-algorithms_on_strings/02-burrows_wheeler/01-bwt/bwt.cpp')
-rw-r--r-- | 04-algorithms_on_strings/02-burrows_wheeler/01-bwt/bwt.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/04-algorithms_on_strings/02-burrows_wheeler/01-bwt/bwt.cpp b/04-algorithms_on_strings/02-burrows_wheeler/01-bwt/bwt.cpp new file mode 100644 index 0000000..f3b0497 --- /dev/null +++ b/04-algorithms_on_strings/02-burrows_wheeler/01-bwt/bwt.cpp @@ -0,0 +1,25 @@ +#include <algorithm> +#include <iostream> +#include <string> +#include <vector> + +using std::cin; +using std::cout; +using std::endl; +using std::string; +using std::vector; + +string BWT(const string& text) { + string result = ""; + + // write your code here + + return result; +} + +int main() { + string text; + cin >> text; + cout << BWT(text) << endl; + return 0; +}
\ No newline at end of file |