Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
248bea9
Add @aaditkamat as a contributor
Dec 21, 2018
85abd67
Add Ruby code for Day 1: FizzBuzz problem
Dec 21, 2018
0c80762
Merge branch 'master' of https://github.com/CodeToExpress/dailycodebase
Dec 22, 2018
76cf6c5
Add Ruby code for Day 2: String reverse problem
Dec 22, 2018
39210a0
Update README.md for Day 2
Dec 22, 2018
64a0ca2
Modify Ruby code and README
Dec 22, 2018
ab743a6
Add condition for nil and wrong type edge cases
Dec 22, 2018
48e33c7
Merge branch 'master' of https://github.com/CodeToExpress/dailycodebase
Dec 22, 2018
bdeefe5
Add a seperate Ruby source code file for palindrome
Dec 22, 2018
fc41b6a
Modify code for reverse.rb
Dec 22, 2018
784ee39
Add seperate palindrome and reverse code sections in README
Dec 22, 2018
b24fa8c
Update gitignore
Dec 23, 2018
b40d361
Refactor palindrome.rb and rename heading in README
Dec 23, 2018
763683a
Merge branch 'master' of https://github.com/CodeToExpress/dailycodebase
Dec 24, 2018
5f1a01d
Add solution for Day 3: Hamming Problem
Dec 24, 2018
8d37216
Add condition for strings of unequal lengths
Dec 24, 2018
3183f2d
Update README
Dec 24, 2018
08c9ca1
Change project name and owner in.all-contributorsrc
Dec 25, 2018
6350c3f
Merge branch 'master' of https://github.com/CodeToExpress/dailycodebase
Dec 25, 2018
af34b2a
Remove merge conflict lines
Dec 25, 2018
e07c5f1
Merge branch 'master' of https://github.com/CodeToExpress/dailycodebase
Dec 25, 2018
c3d05d6
Merge branch 'master' of https://github.com/CodeToExpress/dailycodebase
Dec 25, 2018
6db4527
Add @shivank86 as a contributor
Dec 25, 2018
3667ef7
Merge remote-tracking branch 'upstream/master'
Dec 26, 2018
6ff55a0
Merge branch 'master' of github.com:aaditkamat/dailycodebase
Dec 26, 2018
e4ea3ad
Add C++ files for different patterns
Dec 26, 2018
a46eeab
Merge branch 'master' of https://github.com/CodeToExpress/dailycodebase
Dec 26, 2018
b74a9e5
Add author and date comments at the top of C++ files
Dec 26, 2018
0d16771
Update README.md
Dec 26, 2018
a0879ef
Merge branch 'master' of https://github.com/CodeToExpress/dailycodebase
Dec 26, 2018
8bf3f5b
Merge branch 'master' into master
Dec 27, 2018
f0527fc
Merge branch 'master' of https://github.com/CodeToExpress/dailycodebase
Dec 27, 2018
543d167
Add solution for Day 6 Problem in Python
Dec 27, 2018
9d7d81f
Update README
Dec 27, 2018
46dbf7b
Refactor code files
Dec 27, 2018
cc40fc8
Merge branch 'master' of https://github.com/CodeToExpress/dailycodebase
Dec 27, 2018
1134c2d
Merge branch 'master' of https://github.com/CodeToExpress/dailycodebase
Dec 27, 2018
bb3ab0c
Modify string representation of output in python files
Dec 27, 2018
d96703e
Add Ruby solutions for Day 6 problem
Dec 27, 2018
c2c91da
Update README for Ruby code
Dec 27, 2018
ceadf27
Merge branch 'master' of https://github.com/CodeToExpress/dailycodebase
Dec 28, 2018
c1cbccb
Merge branch 'master' of github.com:aaditkamat/dailycodebase
Dec 28, 2018
2e855d2
Add first version of solutions for Day 7 problem in C++, Java & Ruby
Dec 28, 2018
d9a1e8c
Modify solutions
Dec 28, 2018
5f16c38
Merge branch 'master' of https://github.com/CodeToExpress/dailycodebase
Dec 28, 2018
5499b34
Update Day 7 README
Dec 28, 2018
96b645f
Remove merge conflicts from CONTRIBUTORS.md
Dec 28, 2018
815d24e
Add back removed lines in CONTRIBUTORS.md
Dec 28, 2018
12443c2
Merge branch 'master' into master
Dec 29, 2018
0d95ea5
Merge branch 'master' of https://github.com/CodeToExpress/dailycodebase
Dec 29, 2018
1e45c12
Merge branch 'master' of github.com:aaditkamat/dailycodebase
Dec 29, 2018
38724d2
Add code sections contributed by @imkaka to day 6 README
Dec 29, 2018
0cc23ba
Update README.md
MadhavBahl Dec 29, 2018
5c74b48
Merge branch 'master' of https://github.com/CodeToExpress/dailycodebase
Dec 31, 2018
2f5c30d
Merge branch 'master' of github.com:aaditkamat/dailycodebase
Dec 31, 2018
3ddedb4
Add C++ solution
Dec 31, 2018
b84a4d4
Add Day 8 solution in C++
Dec 31, 2018
26f256c
Add Day 8 solution in Java
Dec 31, 2018
905596d
Add Day 8 solution in Ruby
Dec 31, 2018
a457d3c
Add Day 8 solution in Python
Dec 31, 2018
873cc51
Merge branch 'master' of https://github.com/CodeToExpress/dailycodebase
Dec 31, 2018
f1a18c3
Add credits at the top of the code
Dec 31, 2018
a283abf
Update README
Dec 31, 2018
486b459
Update C++ implementation
Dec 31, 2018
c4c0f9d
Update Python implementation
Dec 31, 2018
ef2afe7
Merge branch 'master' into master
Jan 1, 2019
35a928f
Merge branch 'master' of https://github.com/CodeToExpress/dailycodebase
Jan 1, 2019
f5b8355
Merge branch 'master' of https://github.com/CodeToExpress/dailycodebase
Jan 2, 2019
23f8eea
Merge remote-tracking branch 'origin/master'
Jan 2, 2019
61b941f
Add solution for Day 10: String Permutation Problem in Python
Jan 2, 2019
cee4779
Update Day 10 README
Jan 2, 2019
1e7be81
Merge branch 'master' into master
MadhavBahl Jan 2, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,4 @@
]
}
]
}
}
29 changes: 29 additions & 0 deletions day10/Python/permutations.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
'''
@author: aaditkamat
@date: 02/01/2019
'''

def permutations(string):
if (len(string) <= 1):
return [string]
lst = []
for i in range(len(string)):
substring = ''
for j in range(len(string)):
if j != i:
substring += string[j]
lst.extend(list(set(map(lambda x: string[i] + x, permutations(substring)))))
return lst


def printList(string_list):
for string in string_list:
print(string)

def main():
print('Enter a string: ')
string = input()
print(f'The permutations of {string} are:')
printList(permutations(string))

main()
36 changes: 36 additions & 0 deletions day10/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,39 @@ output:
```js
// To Be Added
```

## Python Implementation

### [Solution](./Python/permutations.py)
```python

'''
@author: aaditkamat
@date: 02/01/2019
'''

def permutations(string):
if (len(string) <= 1):
return [string]
lst = []
for i in range(len(string)):
substring = ''
for j in range(len(string)):
if j != i:
substring += string[j]
lst.extend(list(set(map(lambda x: string[i] + x, permutations(substring)))))
return lst


def printList(string_list):
for string in string_list:
print(string)

def main():
print('Enter a string: ')
string = input()
print(f'The permutations of {string} are:')
printList(permutations(string))

main()
```
2 changes: 1 addition & 1 deletion day8/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![cover](./cover.png)
![cover](./cover.png)

# Day 8 - Maximum Edit Distance (Levenshtein Distance)

Expand Down