Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number of repeating elements #34

Open
songz opened this issue Apr 30, 2017 · 3 comments
Open

Number of repeating elements #34

songz opened this issue Apr 30, 2017 · 3 comments
Labels

Comments

@songz
Copy link
Collaborator

songz commented Apr 30, 2017

Input: An array, a number
Output: number of times the number shows up in the array.

Input: [1,2,2,3], 3
Output: 1

@songz songz added the easy label Apr 30, 2017
@Himanshu1495
Copy link
Contributor

@songz . I can try this in python. Should I ?

@msach22
Copy link
Collaborator

msach22 commented May 9, 2017

@Himanshu1495 please do!

@Himanshu1495
Copy link
Contributor

Himanshu1495 commented May 9, 2017

@songz @msach22 , Please check the code and review it.

dsope05 added a commit that referenced this issue Jun 13, 2017
msach22 pushed a commit that referenced this issue Jul 7, 2017
* Solution to issue #18 in Python

* Modified the code,function created to allow passing the parameters

* Tests for issue #18 added. SKELETON CODE to test python(2.7) solutions created.

* Modification to 18.py

Comments in the code have been removed. for loop has been used as discussed.

* Modification to test18.py

Tests have been modified as per the modified code of 18.py . The code has been tested and it passed the test cases.

* Solution to issue #34 in Python 2.7

* Delete 34.py

* Delete test34.py

* print statement removed from solution

* Test skeleton moved from solutions to tests

* Test modified to eliminate redundancy. pythontest_skeleton modified with new changes. Name of solution changed from 18.py to sol18.py to avoid conflict while importing the file for testing

* Renamed test18.py to 18.py and deleted pythontest_skeleton
msach22 pushed a commit that referenced this issue Jul 7, 2017
* Solution and Test for issue #34 in Python 2.7

* Solution and Test for Issue #34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants