Skip to content

Commit

Permalink
Merge pull request #1 from ambujraj/master
Browse files Browse the repository at this point in the history
Update Repo
  • Loading branch information
bsphair authored Oct 2, 2018
2 parents b779f3e + 6b73eb1 commit 92c4271
Show file tree
Hide file tree
Showing 67 changed files with 2,276 additions and 63 deletions.
100 changes: 98 additions & 2 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,48 @@


Name: [Aditya Agarwal](https://github.com/aditya81070)<br/>
Place: Jaipur, Rajasthan<br/>
About: I am 3rd year computer science student at Jecrc foundation, Jaipur. I am a front end developer.<br/>
About: I am 3rd year computer science student at Jecrc foundation, Jaipur. I am a front end developer.<br/>
Programming Languages: C, C++, Python, Javascript <br/>


Name: [piyush Bafna](https://github.com/piba941)<br/>
Place: Belgaum, Karnataka<br/>
About: I am 2nd year CS student <br/>
Programming Languages: C, C++ <br/>
Email:piyushBafna051@gmail.com


Name: [Abhishek Kansal](https://github.com/abhishall)<br/>
Place: Delhi<br/>
About: I am pursuing MCA at University of Delhi<br/>
Programming Languages: Java, Python, C++<br/>
Email: [email protected]


Name: Jillian Keenan
Place: Belfast, N.Ireland
About: I'm a final year computing science student.
Programming Languages: Java, C#, Javascript
Email: [email protected]



Name: [Aditya Agrawal](https://github.com/silly-soul)<br/>
Place: New Delhi, Delhi<br/>
About: I am 1st year computer science student at Department of computer science, Delhi University. I am a Full stack developer.<br/>
Programming Languages: C, C++, Java, Python, Javascript <br/>
Email: [email protected]



Name: [Antonio Neto](https://github.com/aacgn)<br/>
Place: Recife, Brazil<br/>
About: I am 3rd year information systems student at Federal University of Pernambuco, Recife. I am a test engineer.<br/>
Programming Languages: Python and Javascript <br/>
Email: [email protected]


Name: [Saish Mhatre](https://github.com/lambocrypt)</br>
Place: Thane</br>
About: Currently learning, love to code.</br>
Expand Down Expand Up @@ -31,6 +70,16 @@ Programming Language: Cpp, C, R, PHP, HTML, CSS <br/>
Email: [email protected]


Name: [Mohit Uniyal](https://github.com/mohit2016)
About: I am currently pursuing BSc (H) Computer Science from Delhi University, and i'm in final year. I have some experience in frontend development, and android app development. I have knowledge of MEAN stack. Also, I'm in the field of Machine Learning these days.
Programming Language: C++, JavaScript, Java, Python<br/>
Email: [email protected]

Name:[Michael Loftus](https://github.com/destoer/)
About: currently a student studying cs and maths
Programming Language: C, C++, Rust
Email: [email protected]

Name: [Bernard Joseph Jean Bruno](https://github.com/theArtechnology)
About: Computer Science student as an undergraduate at Université des Mascareignes, Mauritius.
Programming Language: C, C++, Javascript, Python <br/>
Expand Down Expand Up @@ -58,8 +107,55 @@ About: I'm a student. I love High Tech and I found hobby in programming :D <br/>
Programming Language: JavaScript, Python<br/>
Email: [email protected]

Name:[Ansh Sachdeva](https://github.com/root-ansh)<br/>
Place: NewDelhi,India <br/>
About : Ambitious Android Developer and Python Enthusiast. I am a 3rd year B.tech Student , and love open source.</br>
Programming Language :Java, Kotlin ,Python2/3 ,C</br>
Email:anshsachdevaprofessional@gmail.com </br>

Name: [Joseph Lee](https://github.com/jjlee050)
Place: Singapore, SG
About: I am currently a NUS undergraduate Year 2 Computer Science Student. My field of interest is towards Software Engineering and Mobile App Development.
Programming Language: Java, C, HTML, CSS, Kotlin
Email: [email protected]
Email: [email protected]


Name: [Manvi Gupta](https://github.com/Manvi07)<br/>
Place: Punjab, India<br/>
About: I am currently studying computer science and technology in my B.Tech at IIT Mandi. I am a passionate learner and explorer.<br/>
Programming Language: C++, C, python, HTML, css<br/>
Email: [email protected]<br/>


Name: [Praveen Kumar Saini](https://github.com/praveen-me)
Place: Dharamshala, India
About: I am currently learning Full Stack Development and also a Google Uadicty India Scholar.
Pragramming Language : JavaScript, Python
Email: [email protected]


Name: [Prajjwal Jha](https://github.com/JhaPrajjwal)<br/>
Place: Mandi, Himanchal Pradesh<br/>
About: I am 2nd year computer science student at IIT Mandi. I love competitive ccoding.<br/>
Programming Languages: C, C++, Python <br/>


Name: [Sarthak Mittal](https://github.com/sam-mittal)
Place: Delhi,India
About: currently pursuing B.Tech in computer science from MAIT.
Programming Language:c++,java,python
Email: [email protected]


Name: [Keshav Gupta](https://github.com/kgupta786)
Place: Punjab, India
About: I am currently a B.Tech Undergraduate doing CSE at Thapar Institute of Engineering and Technology.My Interests are in Android,Machine Learning, Web Development.
Programming Language: Java, C, HTML, CSS, Android, Python, C++,C#,PHP
Email: [email protected]


Name: [John Braun](https://github.com/jhnbrn90)
About: I am doing a PhD in organic chemistry and really like programming. Used Laravel to create some useful tools for our research group, amongst others a chemicals inventory, booking system and supporting information manager.
Programming Language: PHP, JavaScript
Email: [email protected]

19 changes: 19 additions & 0 deletions FibonacciSeries.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include <stdio.h>
int main()
{
int i, n, t1 = 0, t2 = 1, nextTerm;

printf("Enter the number of terms: ");
scanf("%d", &n);

printf("Fibonacci Series: ");

for (i = 1; i <= n; ++i)
{
printf("%d, ", t1);
nextTerm = t1 + t2;
t1 = t2;
t2 = nextTerm;
}
return 0;
}
34 changes: 23 additions & 11 deletions Palindrome.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
#include <iostream>
#include<iostream>
#include<cstring>
using namespace std;
int main()
{
int n,remainder,reverse=0,originalnumber;
cin>>n;
originalnumber=n;
while(n!=0){
remainder = n%10;
reverse=reverse*10 +remainder;
n/=10;
}
(originalnumber==reverse)?cout<<"palindrome":cout<<"not palindrome";
return 0;
string str,st;
int i,j,flag=1;
cin>>str;
int l =str.size();
for(i=0;i<l;i++)
st[i]=str[i];
for(i=l-1;i>=0;i--)
{
cout<<st[i];
}
for(j=0,i=l-1;i>=0,j<l;i--,j++ )
if(str[j]!=st[i])
{
flag=0;
}
if(flag==1)
{
cout<<"\npalindrome";
}
else
cout<<"\nnot a palindrome";
}
42 changes: 21 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,27 @@

<h2> List of Programs to work on </h2>
<ul>
<li> Hello World </li>
<li> Searching Algorithms </li>
<li> Linked list </li>
<li> Stack </li>
<li> Queue </li>
<li> Traversal Algorithms </li>
<li> Linked list </lI>
<li> Sorting Algorithms </li>
<li> Linked list </li>
<li> Queue </li>
<li> Random number algorithms </li>
<li> Number reversal algorithms </li>
<lI> Fibonacci Series </lI>
<li> Is palindrome a Number </li>
<li> Is number a perfect square? </li>
<li> Is string a pangram </li>
<li> Find the factorial number </li>
<li> Find list of prime numbers. </li>
<li> Create an arrow using CSS </li>
<li> Convert roman numeral </li>
<li> Telephone number validator</li>
<li> - [ ] Hello World </li>
<li> - [ ] Searching Algorithms </li>
<li> - [ ] Linked list </li>
<li> - [ ] Stack </li>
<li> - [ ] Queue </li>
<li> - [ ] Traversal Algorithms </li>
<li> - [ ] Linked list </lI>
<li> - [ ] Sorting Algorithms </li>
<li> - [ ] Linked list </li>
<li> - [ ] Queue </li>
<li> - [ ] Random number algorithms </li>
<li> - [ ] Number reversal algorithms </li>
<lI> - [ ] Fibonacci Series </lI>
<li> - [ ] Is palindrome a Number </li>
<li> - [ ] Is number a perfect square? </li>
<li> - [ ] Is string a pangram </li>
<li> - [ ] Find the factorial number </li>
<li> - [ ] Find list of prime numbers. </li>
<li> - [ ] Create an arrow using CSS </li>
<li> - [ ] Convert roman numeral </li>
<li> - [ ] Telephone number validator</li>

</ul>

Expand Down
25 changes: 25 additions & 0 deletions Repeated K times/Smallest Value Repeated K times.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#include <stdio.h>

int main()
{ int arr[100005],count[100005],n,i,j,temp,k,var;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&arr[i]);
}
scanf("%d",&k);
for(j=0;j<n;j++)
{
var=arr[j];
count[var]++;
}
for(i=0;i<100005;i++)
{
if(count[i]==k)
{
printf("%d",i);
break;
}
}
return 0;
}
16 changes: 9 additions & 7 deletions factorial/factorial.cpp
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
#include <iostream>
#include <iostream> // Imports Standard Library "iostream" which is used for input and output

using namespace std;
using namespace std; // Removes the need for using std::

int factorial (int n)
int factorial (int n) // Defining a function factiorial which takes an integer as an argument and returns an integer
{
if(n==1)
{
return 1;
}
return n*factorial(n-1);
return n*factorial(n-1); // Recursive Function which calls itself with an argument with integer one less in value until it reaches one

}
int main()
{
int n,result;
cin>>n;
result=factorial(n);
int n,result;
cout<<"Enter the number whose factorial you want to find\n";
cin>>n; //Takes input for the value n
result=factorial(n); //Calls factorial with argument n and assigns its return value to result
cout<<"The result is \n";
cout<<result;
return 0;

Expand Down
19 changes: 19 additions & 0 deletions factorialize.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include <stdlib.h>
#include <assert.h>


int factorialize(int n) {
int result = 1;

for(int i = 2; i <= n; i++) {
result *= i;
}
return result;
}

int main() {
assert(factorialize(0) == 1);
assert(factorialize(5) == 120);
assert(factorialize(7) == 5040);
assert(factorialize(9) == 362880);
}
33 changes: 33 additions & 0 deletions fibonacci/Fib-Iterative.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
//Fibonacci Series using Iterative Method
#include <iostream>

using namespace std;

int main()
{
int f1=1;
int f2=1;
int f3;
int n;
cout<<"Enter the terms upto which the Fibonnaci Series has to be printed\n";
cin>>n;
if(n==1)
{
cout<<f1;
}
else if(n==2)
{
cout<<f1<<","<<f2;
}
else
{
cout<<f1<<","<<f2<<",";
for(int i = 3;i<=n;i++)
{
f3=f1+f2;
cout<<f3<",";
f1=f2;
f2=f3;
}
}
}
5 changes: 5 additions & 0 deletions fibonacci/fibonacci.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fibonacci :: Int -> Int

fibonacci 1 = 1
fibonacci 2 = 1
fibonacci x = fibonacci (x-1) + fibonacci (x-2)
22 changes: 7 additions & 15 deletions fibonacci/fibonacci.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
print('Enter the number of terms: ')
num = int(input())
def F(n):
if n == 0: return 0
elif n == 1: return 1
else: return F(n-1)+F(n-2)

alist = []

for i in range(0, num):
if(i == 0):
alist.append(0)
elif(i == 1):
alist.append(1)
else:
alist.append(alist[i - 1] + alist[i - 2])

print('The fibonnaci series is: ')
for i in range(num):
print(alist[i], end = ' ')
if __name__ == '__main__':
num = int(input("Enter a number: "))
print(F(num))
14 changes: 14 additions & 0 deletions fibonacci/fibonacci.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
def fib(n)

if n == 0
return 0
end
if n == 1
return 1
end

if n >= 2
return fib(n-1) + (fib(n-2))
end

end
Loading

0 comments on commit 92c4271

Please sign in to comment.