Skip to content

Commit 028a2ce

Browse files
committed
Merge branch 'master' of github.com:CodeToExpress/dailycodebase
2 parents 665315d + 1d535aa commit 028a2ce

39 files changed

+2772
-41
lines changed

.all-contributorsrc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,36 @@
162162
"doc",
163163
"code"
164164
]
165+
},
166+
{
167+
"login": "profgrammer",
168+
"name": "profgrammer",
169+
"avatar_url": "https://avatars1.githubusercontent.com/u/25369498?v=4",
170+
"profile": "https://github.com/profgrammer",
171+
"contributions": [
172+
"doc",
173+
"code"
174+
]
175+
},
176+
{
177+
"login": "divyakhetan",
178+
"name": "divyakhetan",
179+
"avatar_url": "https://avatars1.githubusercontent.com/u/26656036?v=4",
180+
"profile": "https://github.com/divyakhetan",
181+
"contributions": [
182+
"doc",
183+
"code"
184+
]
185+
},
186+
{
187+
"login": "Spreeha",
188+
"name": "Spreeha Dutta",
189+
"avatar_url": "https://avatars0.githubusercontent.com/u/36483814?v=4",
190+
"profile": "https://github.com/Spreeha",
191+
"contributions": [
192+
"code",
193+
"doc"
194+
]
165195
}
166196
]
167197
}

CONTRIBUTORS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![All Contributors](https://img.shields.io/badge/all_contributors-15-orange.svg?style=flat-square)](#contributors)
1+
[![All Contributors](https://img.shields.io/badge/all_contributors-18-orange.svg?style=flat-square)](#contributors)
22

33
## Contributors
44

@@ -9,7 +9,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
99
| [<img src="https://avatars2.githubusercontent.com/u/26179770?v=4" width="100px;"/><br /><sub><b>MADHAV BAHL</b></sub>](http://madhavbahl.tech/)<br />[💻](https://github.com/CodeToExpress/dailycodebase/commits?author=MadhavBahlMD "Code") [📝](#blog-MadhavBahlMD "Blogposts") [📖](https://github.com/CodeToExpress/dailycodebase/commits?author=MadhavBahlMD "Documentation") [🎨](#design-MadhavBahlMD "Design") [✅](#tutorial-MadhavBahlMD "Tutorials") | [<img src="https://avatars2.githubusercontent.com/u/32531173?v=4" width="100px;"/><br /><sub><b>Rajdeep Roy Chowdhury</b></sub>](http://www.linkedin.com/in/razdeeproychowdhury)<br />[💻](https://github.com/CodeToExpress/dailycodebase/commits?author=Razdeep "Code") [📖](https://github.com/CodeToExpress/dailycodebase/commits?author=Razdeep "Documentation") [✅](#tutorial-Razdeep "Tutorials") | [<img src="https://avatars1.githubusercontent.com/u/16208722?v=4" width="100px;"/><br /><sub><b>Hrishi</b></sub>](https://hrishi1999.github.io)<br />[📖](https://github.com/CodeToExpress/dailycodebase/commits?author=Hrishi1999 "Documentation") [💻](https://github.com/CodeToExpress/dailycodebase/commits?author=Hrishi1999 "Code") | [<img src="https://avatars1.githubusercontent.com/u/33101287?v=4" width="100px;"/><br /><sub><b>Bhanu Ailani</b></sub>](https://github.com/Bhanu0202)<br />[📖](https://github.com/CodeToExpress/dailycodebase/commits?author=Bhanu0202 "Documentation") [💻](https://github.com/CodeToExpress/dailycodebase/commits?author=Bhanu0202 "Code") | [<img src="https://avatars3.githubusercontent.com/u/35690440?v=4" width="100px;"/><br /><sub><b>Deepak Sharma</b></sub>](https://sourcerer.io/dsdsharma)<br />[📖](https://github.com/CodeToExpress/dailycodebase/commits?author=dsdsharma "Documentation") [💻](https://github.com/CodeToExpress/dailycodebase/commits?author=dsdsharma "Code") | [<img src="https://avatars2.githubusercontent.com/u/28749866?v=4" width="100px;"/><br /><sub><b>Ramanpreet Singh</b></sub>](https://github.com/Ramanpreet6262)<br />[📖](https://github.com/CodeToExpress/dailycodebase/commits?author=Ramanpreet6262 "Documentation") [💻](https://github.com/CodeToExpress/dailycodebase/commits?author=Ramanpreet6262 "Code") | [<img src="https://avatars1.githubusercontent.com/u/27620628?v=4" width="100px;"/><br /><sub><b>Anil Khatri</b></sub>](https://imkaka.github.io/)<br />[📖](https://github.com/CodeToExpress/dailycodebase/commits?author=imkaka "Documentation") [💻](https://github.com/CodeToExpress/dailycodebase/commits?author=imkaka "Code") |
1010
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
1111
| [<img src="https://avatars0.githubusercontent.com/u/39827514?v=4" width="100px;"/><br /><sub><b>Ashwek Swamy</b></sub>](https://github.com/ashwek)<br />[📖](https://github.com/CodeToExpress/dailycodebase/commits?author=ashwek "Documentation") [💻](https://github.com/CodeToExpress/dailycodebase/commits?author=ashwek "Code") | [<img src="https://avatars1.githubusercontent.com/u/32368107?v=4" width="100px;"/><br /><sub><b>Dhruv Gupta</b></sub>](https://github.com/dhruv-gupta14)<br />[💻](https://github.com/CodeToExpress/dailycodebase/commits?author=dhruv-gupta14 "Code") | [<img src="https://avatars0.githubusercontent.com/u/30969577?v=4" width="100px;"/><br /><sub><b>Aadit Kamat</b></sub>](https://sg.linkedin.com/in/aadit-kamat-12a5a8140)<br />[📖](https://github.com/CodeToExpress/dailycodebase/commits?author=aaditkamat "Documentation") [💻](https://github.com/CodeToExpress/dailycodebase/commits?author=aaditkamat "Code") | [<img src="https://avatars1.githubusercontent.com/u/20285786?v=4" width="100px;"/><br /><sub><b>Shashank jain</b></sub>](http://www.myshashank.tech)<br />[📖](https://github.com/CodeToExpress/dailycodebase/commits?author=Shashankjain12 "Documentation") [💻](https://github.com/CodeToExpress/dailycodebase/commits?author=Shashankjain12 "Code") | [<img src="https://avatars3.githubusercontent.com/u/22260031?v=4" width="100px;"/><br /><sub><b>Moulik Aggarwal</b></sub>](https://github.com/moulikcipherX)<br />[💬](#question-moulikcipherX "Answering Questions") [📝](#blog-moulikcipherX "Blogposts") [💻](https://github.com/CodeToExpress/dailycodebase/commits?author=moulikcipherX "Code") [📖](https://github.com/CodeToExpress/dailycodebase/commits?author=moulikcipherX "Documentation") | [<img src="https://avatars3.githubusercontent.com/u/21277179?v=4" width="100px;"/><br /><sub><b>Prateek Surana</b></sub>](http://prateeksurana.me)<br />[📖](https://github.com/CodeToExpress/dailycodebase/commits?author=prateek3255 "Documentation") [💻](https://github.com/CodeToExpress/dailycodebase/commits?author=prateek3255 "Code") | [<img src="https://avatars2.githubusercontent.com/u/43927436?v=4" width="100px;"/><br /><sub><b>shivank86</b></sub>](https://github.com/shivank86)<br />[💻](https://github.com/CodeToExpress/dailycodebase/commits?author=shivank86 "Code") |
12-
| [<img src="https://avatars2.githubusercontent.com/u/25405726?v=4" width="100px;"/><br /><sub><b>Vishal Shirke</b></sub>](https://github.com/vishalshirke7)<br />[📖](https://github.com/CodeToExpress/dailycodebase/commits?author=vishalshirke7 "Documentation") [💻](https://github.com/CodeToExpress/dailycodebase/commits?author=vishalshirke7 "Code") |
12+
| [<img src="https://avatars2.githubusercontent.com/u/25405726?v=4" width="100px;"/><br /><sub><b>Vishal Shirke</b></sub>](https://github.com/vishalshirke7)<br />[📖](https://github.com/CodeToExpress/dailycodebase/commits?author=vishalshirke7 "Documentation") [💻](https://github.com/CodeToExpress/dailycodebase/commits?author=vishalshirke7 "Code") | [<img src="https://avatars1.githubusercontent.com/u/25369498?v=4" width="100px;"/><br /><sub><b>profgrammer</b></sub>](https://github.com/profgrammer)<br />[📖](https://github.com/CodeToExpress/dailycodebase/commits?author=profgrammer "Documentation") [💻](https://github.com/CodeToExpress/dailycodebase/commits?author=profgrammer "Code") | [<img src="https://avatars1.githubusercontent.com/u/26656036?v=4" width="100px;"/><br /><sub><b>divyakhetan</b></sub>](https://github.com/divyakhetan)<br />[📖](https://github.com/CodeToExpress/dailycodebase/commits?author=divyakhetan "Documentation") [💻](https://github.com/CodeToExpress/dailycodebase/commits?author=divyakhetan "Code") | [<img src="https://avatars0.githubusercontent.com/u/36483814?v=4" width="100px;"/><br /><sub><b>Spreeha Dutta</b></sub>](https://github.com/Spreeha)<br />[💻](https://github.com/CodeToExpress/dailycodebase/commits?author=Spreeha "Code") [📖](https://github.com/CodeToExpress/dailycodebase/commits?author=Spreeha "Documentation") |
1313
<!-- ALL-CONTRIBUTORS-LIST:END -->
1414

15-
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!
15+
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!

Day1/C++/fizzbuzzday1.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/**
2+
* @author divyakhetan
3+
* @date 30/12/2018
4+
*/
5+
6+
#include<bits/stdc++.h>
7+
using namespace std;
8+
9+
int main(){
10+
cout << "Enter a number ";
11+
int n;
12+
cin >> n;
13+
for(int i = 1; i <= n; i++){
14+
if((i % 3 == 0) && (i % 5 == 0)) cout << "FizzBuzz ";
15+
else if(i % 3 == 0) cout << "Fizz ";
16+
else if(i % 5 == 0) cout << "Buzz ";
17+
else cout << i << " ";
18+
}
19+
return 0;
20+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
'''
2+
*@author: profgrammer
3+
*@date: 30-12-2018
4+
'''
5+
6+
n = int(input())
7+
8+
for i in range(1, n+1):
9+
if(i % 15 == 0):
10+
print("Fizz Buzz")
11+
elif(i % 5 == 0):
12+
print("Buzz")
13+
elif(i % 3 == 0):
14+
print("Fizz")
15+
else:
16+
print(i)
17+

Day1/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,26 @@ for i in range(1, n+1):
199199
200200
```
201201

202+
### [profgrammer_fizzbuzz.py](./Python3/profgrammer_fizzbuzz.py)
203+
```python
204+
'''
205+
@author: profgrammer
206+
@date: 30-12-2018
207+
'''
208+
209+
n = int(input())
210+
211+
for i in range(1, n+1):
212+
if(i % 15 == 0):
213+
print("Fizz Buzz")
214+
elif(i % 5 == 0):
215+
print("Buzz")
216+
elif(i % 3 == 0):
217+
print("Fizz")
218+
else:
219+
print(i)
220+
```
221+
202222
## C++ Implementation
203223

204224
### [FizzBuzz.cpp](./C++/FizzBuzz.cpp)

day4/README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ import re
228228
"""
229229
This solution makes use of python's re module i.e regular expressions
230230
Here findall method takes two parameters 1st - regualr expression, 2nd - input string
231-
The regular expression simply checks for all vowels present in the input string
232-
and returns them as a list.
231+
The regular expression simply checks for all vowels present in the input string
232+
and returns them as a list.
233233
"""
234234
print(len(re.findall(r'[a,e,i,o,u,A,E,I,O,U]', input())))
235235

@@ -273,6 +273,8 @@ for i in b:
273273
print(count)
274274
```
275275

276+
<hr/>
277+
276278
## C++ Implementation
277279

278280
### [NumVowelsPartA.cpp](./C++/NumVowelsPartA.cpp)
@@ -389,7 +391,7 @@ print("Number of vowels in the string are : ",count)
389391
### [Solution by shashank](./Python/Shashankvowels.py)
390392

391393
```py
392-
"""
394+
"""
393395
* @author: Shashank Jain
394396
* @date: 25/12/2018
395397
"""
@@ -554,17 +556,17 @@ dictnry = {}
554556
maxCount, maxChar = 0, ''
555557
for char in input_str:
556558
"""
557-
In this solution we are simply maintaining a dictionary of characters
558-
in the input string as key and their count as value
559+
In this solution we are simply maintaining a dictionary of characters
560+
in the input string as key and their count as value
559561
"""
560562
if char in dictnry.keys():
561563
dictnry[char] += 1
562564
else:
563565
dictnry[char] = 1
564-
"""
565-
We check for maxCount of each character in a single loop
566-
by comparing it with present maxCount, hence not iterating over the dictionary again
567-
to find character with maximum count.
566+
"""
567+
We check for maxCount of each character in a single loop
568+
by comparing it with present maxCount, hence not iterating over the dictionary again
569+
to find character with maximum count.
568570
"""
569571
if dictnry[char] > maxCount:
570572
maxCount = dictnry[char]
@@ -591,7 +593,7 @@ for char in string:
591593
# Else initialize its frequency by 1
592594
else:
593595
characters[char.lower()]=1
594-
596+
595597
# Print the character which has the maximum frequency
596598
print("The most occouring character in the string is : ", max(characters,key=characters.get))
597599

@@ -661,7 +663,6 @@ int main()
661663
return 0;
662664
}
663665
```
664-
665666
### [mostFrequent.cpp](./C++/mostFrequent.cpp)
666667

667668
```cpp

0 commit comments

Comments
 (0)