diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/1-angry-professor.php b/Algorithm/Implementation/1-angry-professor.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/10-the-grid-search.php b/Algorithm/Implementation/10-the-grid-search.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/11-cavity-map.cpp b/Algorithm/Implementation/11-cavity-map.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/11-cavity-map.php b/Algorithm/Implementation/11-cavity-map.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/12-library-fine.cpp b/Algorithm/Implementation/12-library-fine.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/12-library-fine.php b/Algorithm/Implementation/12-library-fine.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/12-manasa-and-stones.cpp b/Algorithm/Implementation/12-manasa-and-stones.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/12-manasa-and-stones.php b/Algorithm/Implementation/12-manasa-and-stones.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/13-acm-icpc-team.c b/Algorithm/Implementation/13-acm-icpc-team.c old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/13-acm-icpc-team.cpp b/Algorithm/Implementation/13-acm-icpc-team.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/13-acm-icpc-team.php b/Algorithm/Implementation/13-acm-icpc-team.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/14-extra-long-factorials.c b/Algorithm/Implementation/14-extra-long-factorials.c old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/14-extra-long-factorials.php b/Algorithm/Implementation/14-extra-long-factorials.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/15-taum-and-bday.c b/Algorithm/Implementation/15-taum-and-bday.c old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/15-taum-and-bday.php b/Algorithm/Implementation/15-taum-and-bday.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/16-the-time-in-words.php b/Algorithm/Implementation/16-the-time-in-words.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/17-kaprekar-numbers.php b/Algorithm/Implementation/17-kaprekar-numbers.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/18-encryption.cpp b/Algorithm/Implementation/18-encryption.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/18-encryption.php b/Algorithm/Implementation/18-encryption.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/19-matrix-rotation-algo.cpp b/Algorithm/Implementation/19-matrix-rotation-algo.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/2-sherlock-and-the-beast.cpp b/Algorithm/Implementation/2-sherlock-and-the-beast.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/2-sherlock-and-the-beast.php b/Algorithm/Implementation/2-sherlock-and-the-beast.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/3-utopian-tree.cpp b/Algorithm/Implementation/3-utopian-tree.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/3-utopian-tree.php b/Algorithm/Implementation/3-utopian-tree.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/4-find-digits.cpp b/Algorithm/Implementation/4-find-digits.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/4-find-digits.php b/Algorithm/Implementation/4-find-digits.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/5-sherlock-and-squares.cpp b/Algorithm/Implementation/5-sherlock-and-squares.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/5-sherlock-and-squares.php b/Algorithm/Implementation/5-sherlock-and-squares.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/6-service-lane.c b/Algorithm/Implementation/6-service-lane.c old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/6-service-lane.cpp b/Algorithm/Implementation/6-service-lane.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/7-cut-the-sticks.cpp b/Algorithm/Implementation/7-cut-the-sticks.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/7-cut-the-sticks.php b/Algorithm/Implementation/7-cut-the-sticks.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/8-chocolate-feast.c b/Algorithm/Implementation/8-chocolate-feast.c old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/9-caesar-cipher-1.c b/Algorithm/Implementation/9-caesar-cipher-1.c old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/9-caesar-cipher-1.php b/Algorithm/Implementation/9-caesar-cipher-1.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/1-tutorial-intro.cpp b/Algorithm/Implementation/Sorting/1-tutorial-intro.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/1-tutorial-intro.php b/Algorithm/Implementation/Sorting/1-tutorial-intro.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/10-quicksort4.php b/Algorithm/Implementation/Sorting/10-quicksort4.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/11-countingsort1.php b/Algorithm/Implementation/Sorting/11-countingsort1.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/12-countingsort2.php b/Algorithm/Implementation/Sorting/12-countingsort2.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/13-countingsort3.php b/Algorithm/Implementation/Sorting/13-countingsort3.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/14-countingsort4.cpp b/Algorithm/Implementation/Sorting/14-countingsort4.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/14-countingsort4.php b/Algorithm/Implementation/Sorting/14-countingsort4.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/15-closest-numbers.php b/Algorithm/Implementation/Sorting/15-closest-numbers.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/16-find-median.php b/Algorithm/Implementation/Sorting/16-find-median.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/17-sherlock-and-watson.php b/Algorithm/Implementation/Sorting/17-sherlock-and-watson.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/18-almost-sorted.cpp b/Algorithm/Implementation/Sorting/18-almost-sorted.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/18-almost-sorted.php b/Algorithm/Implementation/Sorting/18-almost-sorted.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/19-sherlock-and-pairs.php b/Algorithm/Implementation/Sorting/19-sherlock-and-pairs.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/2-insertionsort1.php b/Algorithm/Implementation/Sorting/2-insertionsort1.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/20-insertion-sort.cpp b/Algorithm/Implementation/Sorting/20-insertion-sort.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/20-insertion-sort.php b/Algorithm/Implementation/Sorting/20-insertion-sort.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/3-insertionsort2.php b/Algorithm/Implementation/Sorting/3-insertionsort2.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/4-correctness-invariant.php b/Algorithm/Implementation/Sorting/4-correctness-invariant.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/5-runningtime.php b/Algorithm/Implementation/Sorting/5-runningtime.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/6-quicksort1.php b/Algorithm/Implementation/Sorting/6-quicksort1.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/7-quicksort2.php b/Algorithm/Implementation/Sorting/7-quicksort2.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/8-quicksort3.cpp b/Algorithm/Implementation/Sorting/8-quicksort3.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/8-quicksort3.php b/Algorithm/Implementation/Sorting/8-quicksort3.php old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/9-bigger-is-greater.cpp b/Algorithm/Implementation/Sorting/9-bigger-is-greater.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Implementation/Sorting/9-bigger-is-greater.php b/Algorithm/Implementation/Sorting/9-bigger-is-greater.php old mode 100644 new mode 100755 diff --git a/Algorithm/Search/1-sherlock-and-array.cpp b/Algorithm/Search/1-sherlock-and-array.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Search/1-sherlock-and-array.php b/Algorithm/Search/1-sherlock-and-array.php old mode 100644 new mode 100755 diff --git a/Algorithm/Search/2-icecream-parlor.php b/Algorithm/Search/2-icecream-parlor.php old mode 100644 new mode 100755 diff --git a/Algorithm/Search/3-maximise-sum.cpp b/Algorithm/Search/3-maximise-sum.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Search/3-maximise-sum.php b/Algorithm/Search/3-maximise-sum.php old mode 100644 new mode 100755 diff --git a/Algorithm/Search/4-missing-numbers.cpp b/Algorithm/Search/4-missing-numbers.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Search/4-missing-numbers.php b/Algorithm/Search/4-missing-numbers.php old mode 100644 new mode 100755 diff --git a/Algorithm/Search/5-connected-cell-in-a-grid.php b/Algorithm/Search/5-connected-cell-in-a-grid.php old mode 100644 new mode 100755 diff --git a/Algorithm/String/1-pangrams.c b/Algorithm/String/1-pangrams.c old mode 100644 new mode 100755 diff --git a/Algorithm/String/1-pangrams.php b/Algorithm/String/1-pangrams.php old mode 100644 new mode 100755 diff --git a/Algorithm/String/10-palindrome-index.php b/Algorithm/String/10-palindrome-index.php old mode 100644 new mode 100755 diff --git a/Algorithm/String/11-reverse-shuffle-merge.php b/Algorithm/String/11-reverse-shuffle-merge.php old mode 100644 new mode 100755 diff --git a/Algorithm/String/12-the-love-letter-mystery.cpp b/Algorithm/String/12-the-love-letter-mystery.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/String/12-the-love-letter-mystery.php b/Algorithm/String/12-the-love-letter-mystery.php old mode 100644 new mode 100755 diff --git a/Algorithm/String/13-common-child.cpp b/Algorithm/String/13-common-child.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/String/14-morgan-and-a-string.php b/Algorithm/String/14-morgan-and-a-string.php old mode 100644 new mode 100755 diff --git a/Algorithm/String/15-sherlock-and-valid-string.php b/Algorithm/String/15-sherlock-and-valid-string.php old mode 100644 new mode 100755 diff --git a/Algorithm/String/16-count-string.php b/Algorithm/String/16-count-string.php old mode 100644 new mode 100755 diff --git a/Algorithm/String/17-string-function-calculation.cpp b/Algorithm/String/17-string-function-calculation.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/String/17-string-function-calculation.php b/Algorithm/String/17-string-function-calculation.php old mode 100644 new mode 100755 diff --git a/Algorithm/String/2-funny-string.cpp b/Algorithm/String/2-funny-string.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/String/2-funny-string.php b/Algorithm/String/2-funny-string.php old mode 100644 new mode 100755 diff --git a/Algorithm/String/22-string-similarity.cpp b/Algorithm/String/22-string-similarity.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/String/22-string-similarity.php b/Algorithm/String/22-string-similarity.php old mode 100644 new mode 100755 diff --git a/Algorithm/String/3-alternating-characters.cpp b/Algorithm/String/3-alternating-characters.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/String/3-alternating-characters.php b/Algorithm/String/3-alternating-characters.php old mode 100644 new mode 100755 diff --git a/Algorithm/String/4-game-of-thrones.cpp b/Algorithm/String/4-game-of-thrones.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/String/4-game-of-thrones.php b/Algorithm/String/4-game-of-thrones.php old mode 100644 new mode 100755 diff --git a/Algorithm/String/5-gem-stones.cpp b/Algorithm/String/5-gem-stones.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/String/5-gem-stones.php b/Algorithm/String/5-gem-stones.php old mode 100644 new mode 100755 diff --git a/Algorithm/String/6-make-it-anagram.cpp b/Algorithm/String/6-make-it-anagram.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/String/6-make-it-anagram.php b/Algorithm/String/6-make-it-anagram.php old mode 100644 new mode 100755 diff --git a/Algorithm/String/7-anagram.cpp b/Algorithm/String/7-anagram.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/String/7-anagram.php b/Algorithm/String/7-anagram.php old mode 100644 new mode 100755 diff --git a/Algorithm/String/8-two-string.cpp b/Algorithm/String/8-two-string.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/String/8-two-string.php b/Algorithm/String/8-two-string.php old mode 100644 new mode 100755 diff --git a/Algorithm/String/9-sherlock-and-anagrams.cpp b/Algorithm/String/9-sherlock-and-anagrams.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Warmup/1-solve-me-first.c b/Algorithm/Warmup/1-solve-me-first.c old mode 100644 new mode 100755 diff --git a/Algorithm/Warmup/2-simple-array-sum.c b/Algorithm/Warmup/2-simple-array-sum.c old mode 100644 new mode 100755 diff --git a/Algorithm/Warmup/3-a-very-big-sum.cpp b/Algorithm/Warmup/3-a-very-big-sum.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Warmup/4-diagonal-difference.cpp b/Algorithm/Warmup/4-diagonal-difference.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Warmup/4-diagonal-difference.php b/Algorithm/Warmup/4-diagonal-difference.php old mode 100644 new mode 100755 diff --git a/Algorithm/Warmup/5-plus-minus.c b/Algorithm/Warmup/5-plus-minus.c old mode 100644 new mode 100755 diff --git a/Algorithm/Warmup/6-staircase.c b/Algorithm/Warmup/6-staircase.c old mode 100644 new mode 100755 diff --git a/Algorithm/Warmup/7-time-conversion.cpp b/Algorithm/Warmup/7-time-conversion.cpp old mode 100644 new mode 100755 diff --git a/Algorithm/Warmup/7-time-conversion.php b/Algorithm/Warmup/7-time-conversion.php old mode 100644 new mode 100755 diff --git a/C++/Classes/1-c-tutorial-struct.cpp b/C++/Classes/1-c-tutorial-struct.cpp old mode 100644 new mode 100755 diff --git a/C++/Classes/2-c-tutorial-class.cpp b/C++/Classes/2-c-tutorial-class.cpp old mode 100644 new mode 100755 diff --git a/C++/Classes/3-classes-objects.cpp b/C++/Classes/3-classes-objects.cpp old mode 100644 new mode 100755 diff --git a/C++/Classes/4-c-class-templates.cpp b/C++/Classes/4-c-class-templates.cpp old mode 100644 new mode 100755 diff --git a/C++/Classes/5-box-it.cpp b/C++/Classes/5-box-it.cpp old mode 100644 new mode 100755 diff --git a/C++/Classes/6-attending-workshops.cpp b/C++/Classes/6-attending-workshops.cpp old mode 100644 new mode 100755 diff --git a/C++/Classes/7-abstract-classes-polymorphism.cpp b/C++/Classes/7-abstract-classes-polymorphism.cpp old mode 100644 new mode 100755 diff --git a/C++/Inheritance/1-inheritance-introduction.cpp b/C++/Inheritance/1-inheritance-introduction.cpp old mode 100644 new mode 100755 diff --git a/C++/Inheritance/2-rectangle-area.cpp b/C++/Inheritance/2-rectangle-area.cpp old mode 100644 new mode 100755 diff --git a/C++/Inheritance/3-multi-level-inheritance-cpp.cpp b/C++/Inheritance/3-multi-level-inheritance-cpp.cpp old mode 100644 new mode 100755 diff --git a/C++/Inheritance/4-accessing-inherited-functions.cpp b/C++/Inheritance/4-accessing-inherited-functions.cpp old mode 100644 new mode 100755 diff --git a/C++/Introdution/1-cpp-hello-world.cpp b/C++/Introdution/1-cpp-hello-world.cpp old mode 100644 new mode 100755 diff --git a/C++/Introdution/10-variable-sized-arrays.cpp b/C++/Introdution/10-variable-sized-arrays.cpp old mode 100644 new mode 100755 diff --git a/C++/Introdution/11-overload-operators.cpp b/C++/Introdution/11-overload-operators.cpp old mode 100644 new mode 100755 diff --git a/C++/Introdution/12-virtual-functions.cpp b/C++/Introdution/12-virtual-functions.cpp old mode 100644 new mode 100755 diff --git a/C++/Introdution/13-bitset-1.cpp b/C++/Introdution/13-bitset-1.cpp old mode 100644 new mode 100755 diff --git a/C++/Introdution/2-cpp-input-and-output.cpp b/C++/Introdution/2-cpp-input-and-output.cpp old mode 100644 new mode 100755 diff --git a/C++/Introdution/3-c-tutorial-basic-data-types.cpp b/C++/Introdution/3-c-tutorial-basic-data-types.cpp old mode 100644 new mode 100755 diff --git a/C++/Introdution/4-c-tutorial-conditional-if-else.cpp b/C++/Introdution/4-c-tutorial-conditional-if-else.cpp old mode 100644 new mode 100755 diff --git a/C++/Introdution/5-c-tutorial-for-loop.cpp b/C++/Introdution/5-c-tutorial-for-loop.cpp old mode 100644 new mode 100755 diff --git a/C++/Introdution/6-c-tutorial-functions.cpp b/C++/Introdution/6-c-tutorial-functions.cpp old mode 100644 new mode 100755 diff --git a/C++/Introdution/7-c-tutorial-pointer.cpp b/C++/Introdution/7-c-tutorial-pointer.cpp old mode 100644 new mode 100755 diff --git a/C++/Introdution/8-arrays-introduction.cpp b/C++/Introdution/8-arrays-introduction.cpp old mode 100644 new mode 100755 diff --git a/C++/Introdution/9-operator-overloading.cpp b/C++/Introdution/9-operator-overloading.cpp old mode 100644 new mode 100755 diff --git a/C++/STL/1-vector-sort.cpp b/C++/STL/1-vector-sort.cpp old mode 100644 new mode 100755 diff --git a/C++/STL/2-vector-erase.cpp b/C++/STL/2-vector-erase.cpp old mode 100644 new mode 100755 diff --git a/C++/STL/3-cpp-lower-bound.cpp b/C++/STL/3-cpp-lower-bound.cpp old mode 100644 new mode 100755 diff --git a/C++/STL/4-cpp-sets.cpp b/C++/STL/4-cpp-sets.cpp old mode 100644 new mode 100755 diff --git a/C++/STL/5-cpp-maps.cpp b/C++/STL/5-cpp-maps.cpp old mode 100644 new mode 100755 diff --git a/C++/STL/6-deque-stl.cpp b/C++/STL/6-deque-stl.cpp old mode 100644 new mode 100755 diff --git a/C++/Strings/1-c-tutorial-strings.cpp b/C++/Strings/1-c-tutorial-strings.cpp old mode 100644 new mode 100755 diff --git a/C++/Strings/2-c-tutorial-stringstream.cpp b/C++/Strings/2-c-tutorial-stringstream.cpp old mode 100644 new mode 100755 diff --git a/C++/Strings/3-attribute-parser.php b/C++/Strings/3-attribute-parser.php old mode 100644 new mode 100755 diff --git a/DataStructure/Arrays/1-arrays-ds.cpp b/DataStructure/Arrays/1-arrays-ds.cpp old mode 100644 new mode 100755 diff --git a/DataStructure/Arrays/2-2d-array.cpp b/DataStructure/Arrays/2-2d-array.cpp old mode 100644 new mode 100755 diff --git a/DataStructure/Arrays/3-dynamic-array.cpp b/DataStructure/Arrays/3-dynamic-array.cpp old mode 100644 new mode 100755 diff --git a/DataStructure/Arrays/3-dynamic-array.php b/DataStructure/Arrays/3-dynamic-array.php old mode 100644 new mode 100755 diff --git a/DataStructure/Arrays/4-sparse-arrays.php b/DataStructure/Arrays/4-sparse-arrays.php old mode 100644 new mode 100755 diff --git a/DataStructure/CMakeLists.txt b/DataStructure/CMakeLists.txt old mode 100644 new mode 100755 diff --git a/DataStructure/LinkedLists/1-print-the-elements-of-a-linked-list.cpp b/DataStructure/LinkedLists/1-print-the-elements-of-a-linked-list.cpp old mode 100644 new mode 100755 diff --git a/DataStructure/LinkedLists/2-insert-a-node-at-the-tail-of-a-linked-list.cpp b/DataStructure/LinkedLists/2-insert-a-node-at-the-tail-of-a-linked-list.cpp old mode 100644 new mode 100755 diff --git a/DataStructure/LinkedLists/3-insert-a-node-at-the-head-of-a-linked-list.cpp b/DataStructure/LinkedLists/3-insert-a-node-at-the-head-of-a-linked-list.cpp old mode 100644 new mode 100755 diff --git a/DataStructure/LinkedLists/4-insert-a-node-at-a-specific-position-in-a-linked-list.cpp b/DataStructure/LinkedLists/4-insert-a-node-at-a-specific-position-in-a-linked-list.cpp old mode 100644 new mode 100755 diff --git a/DataStructure/LinkedLists/5-delete-a-node-from-a-linked-list.cpp b/DataStructure/LinkedLists/5-delete-a-node-from-a-linked-list.cpp old mode 100644 new mode 100755 diff --git a/DataStructure/LinkedLists/6-print-the-elements-of-a-linked-list-in-reverse.cpp b/DataStructure/LinkedLists/6-print-the-elements-of-a-linked-list-in-reverse.cpp old mode 100644 new mode 100755 diff --git a/DataStructure/LinkedLists/7-reverse-a-linked-list.cpp b/DataStructure/LinkedLists/7-reverse-a-linked-list.cpp old mode 100644 new mode 100755 diff --git a/DataStructure/LinkedLists/8-compare-two-linked-lists.cpp b/DataStructure/LinkedLists/8-compare-two-linked-lists.cpp old mode 100644 new mode 100755 diff --git a/DataStructure/LinkedLists/9-merge-two-sorted-linked-lists.cpp b/DataStructure/LinkedLists/9-merge-two-sorted-linked-lists.cpp old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/Regex/Applications/1-detect-html-links.js b/Regex/Applications/1-detect-html-links.js new file mode 100644 index 0000000..91fe545 --- /dev/null +++ b/Regex/Applications/1-detect-html-links.js @@ -0,0 +1,8 @@ +function processData(input) { + var regex=/(.*?)<\/a>/ig; + var output=[]; + input.replace(regex,function(_,href,text){ + output.push(href.trim()+','+text.replace(/<.*?>/g,'').trim()) + }); + console.log(output.join('\n')); +} diff --git a/Regex/Applications/1-detect-html-links.php b/Regex/Applications/1-detect-html-links.php new file mode 100644 index 0000000..868d0e4 --- /dev/null +++ b/Regex/Applications/1-detect-html-links.php @@ -0,0 +1,15 @@ +(.*?)<\/a>/', $html, $matches)) { + foreach ($matches[1] as $i => $link) { + printf("%s,%s\n", $link, trim(strip_tags($matches[2][$i]))); + } +} diff --git a/Regex/Applications/10-detecting-valid-latitude-and-longitude.php b/Regex/Applications/10-detecting-valid-latitude-and-longitude.php new file mode 100644 index 0000000..fc7c02b --- /dev/null +++ b/Regex/Applications/10-detecting-valid-latitude-and-longitude.php @@ -0,0 +1,21 @@ + 90 || $matches[2][0] > 180) { + echo "Invalid\n"; + } else { + echo "Valid\n"; + } + } else { + echo "Invalid\n"; + } +} diff --git a/Regex/Applications/11-hackerrank-tweets.php b/Regex/Applications/11-hackerrank-tweets.php new file mode 100644 index 0000000..568e91f --- /dev/null +++ b/Regex/Applications/11-hackerrank-tweets.php @@ -0,0 +1,11 @@ +(.*)<\/span>)/', $html, $matches); + +for ($i = 0; $i < count($matches[0]) / 2; $i ++) { + printf("%s;%s;%s\n", $matches[1][$i * 2], $matches[2][$i * 2], $matches[3][($i + 1) * 2 - 1]); +} diff --git a/Regex/Applications/13-utopian-identification-number.php b/Regex/Applications/13-utopian-identification-number.php new file mode 100644 index 0000000..57ba9c3 --- /dev/null +++ b/Regex/Applications/13-utopian-identification-number.php @@ -0,0 +1,11 @@ += 10000 && $matches[1] < 100000 && in_array($matches[2], $languages)) { + echo "VALID\n"; + } else { + echo "INVALID\n"; + } + } else { + echo "INVALID\n"; + } +} diff --git a/Regex/Applications/17-programming-language-detection.php b/Regex/Applications/17-programming-language-detection.php new file mode 100644 index 0000000..57746dc --- /dev/null +++ b/Regex/Applications/17-programming-language-detection.php @@ -0,0 +1,20 @@ +|\[.*?\])/'; + +if (preg_match_all($regex, $html, $matches)) { + foreach ($matches[2] as $g) { + $tags[] = $g ?: 'a'; + } +} + +$tags = array_unique($tags); +sort($tags); + +echo implode(";", $tags) . PHP_EOL; diff --git a/Regex/Applications/20-html-attributes.php b/Regex/Applications/20-html-attributes.php new file mode 100644 index 0000000..c68d80b --- /dev/null +++ b/Regex/Applications/20-html-attributes.php @@ -0,0 +1,46 @@ + $attributes) { + sort($attributes); + + printf("%s:%s\n", $tag, implode(',', $attributes)); +} diff --git a/Regex/Applications/21-uk-and-us.php b/Regex/Applications/21-uk-and-us.php new file mode 100644 index 0000000..a310f5a --- /dev/null +++ b/Regex/Applications/21-uk-and-us.php @@ -0,0 +1,18 @@ +0;$n-=1) + $s.=fgets($fp); + +$s = preg_replace("/(ww[w2-9]\.)/", "", $s); +preg_match_all("/https?:\/\/([a-z0-9._\-]+)/", $s, $m); + +foreach($m[1] as $v) { + if(!preg_match("/[a-z0-9_\-]+\.[a-z]+$/", $v)) + continue; + $arr[] = $v; +} +$arr = array_unique($arr); +sort($arr); +echo implode(";", $arr); diff --git a/Regex/Applications/9-ide-identifying-comments.php b/Regex/Applications/9-ide-identifying-comments.php new file mode 100644 index 0000000..30841f3 --- /dev/null +++ b/Regex/Applications/9-ide-identifying-comments.php @@ -0,0 +1,13 @@ +