mtmex1's People
mtmex1's Issues
Run on their limap.o and testers
electionRemoveAreas Macro Map
Bad implementation in electionRemoveTribe of votes_by_areas iteration
See CR comment for details
Move the bulk of the functionality from `mapGet` to `mapNodeGet`
I need this function to verify data is overridden when trying to put
something for an existing key
getting size num of map after destroying
If after using the mapDestroy function we are using mapGetSize we will get an int and not a 0/NULL
Add comments and docstring EVERYWHERE
Create a AUG_MAP_FOREACH
We need this for the calculation of the votes.
Related to #20
Add a stress test for the map
Make a test which add many many values to the dictionary and then removes them all.
To test how the map handles lots of data.
Maybe 20k values or so.
I wanna fail everyone who limits the map size with a constant ๐
error in mapDestroy
when giving a an empty map, the function mapDestroy tries to free a not existing data
error in Valgrind
there is some problem in testMapPutGet. specifically in the long string part.
Valgrind shows some kind of a probem in that part of the code
but i cant find the cause
Verify error precedence in election and map
function intToStr returns value
intToStr in augmented_map.c
is a void function
Implement AugmentedMap ADT
augMapPutStr should get a const char*
augMapPutStr
should get a const char* and not char*
We need to add (for each area)
We need to add (for each area):
if(max_votes == 0){
winning_tribe_id = augMapGetMinKey(election->tribes);
}
Originally posted by @gur111 in https://github.com/_render_node/MDExOlB1bGxSZXF1ZXN0NDA2NzIwNTQ1/timeline/more_items
Implement function to convert AugMapResult to ElectionResult
Something like I did in the AugMap to convert from MapResult
:
ElectionResult augMapResultToElectionResult(AugMapResult result);
create a test for MAP_FOREACH
Maybe add a test for the FOR_EACH?
Something like adding to map multiple values.
Then doing a FOR_EACH and for each value we'll add it to a second map. Also validate the iterations is equal to the map's size.
Then FOR_EACH on the second map and verify all the keys exist in the first map.
check map.c and election.c in valgrind
electionDestroy dosent check if election is null
Ajdust election.c to use the error code from augmap of invalid id
Now, it is invalid to pass keys below 0 to augmented map.
I need -1 to be used as an error in augMapGetFirst
so I changed it.
We need to amend election.c
to not validate itself that the id is valid and instead rely on AugMap.
Open more issues :-P
Amend `election.c` code to use `AugMap` instead of `Map`
election.c
code to use AugMap
instead of Map
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.