blah blah blah is here! blah blah » Close

0
votes
2 answers

How is the key in a hashtable looked up?

Rick_A
761

Internally, how would the key and then the value be retrieved from a hashtable. Are the keys sorted? What sort of big-O would the lookup be?

0
votes
1 answers

How would you write your own Hashtable class without using built-in methods?

Rick_A
761

Curious, how would you go about writing your own custom Hashtable class, without using the build-in c# methods to do this?

0
votes
1 answers

search hashtable by value, not by key?

is there a way to search a hashtable by value, not by key in c#?

1
votes
1 answers

search hashtable by value, not by key?

is there a way to search a hashtable by value, not by key in c#?

0
votes
1 answers

find string in hashtable, if found, add +1 to number on end?

i have a hashtable of usernames as a key, when a user connects with the same name, i want to add a number to the end. so if "larry" joins, and another joins with the same name i want the new string to be "larry-01". if ...

0
votes
2 answers

How to sort this?

AK01
15

Hi! A have an associative massive... something like "green" => 5 "red" => 3 "yellow" => 1 "brown" => 4 "orange" => 2 I need to sort it by the second value, i.e.: ...

1
votes
1 answers

performance question

muster
1556

Hey all, lets say i have a set of items for example 10 items, these items are changed frequently "added or removed and can exceed 10". Beside the add and remove the items are read frequently as well for example after 4-5 read thro ...

0
votes
1 answers

Hashtable to list<t>

How can I convert hashtable(1,a<t>) to list<t> ? Thanks

2
votes
1 answers

Creating a hashtable of name/value pairs from an xml file

I have an xml file that looks like: [code] <root> <label key="home">Home</label> <label key="quit">Quit</label> <label key="start">Start</label> </root> ...

Feedback