All Questions
6
questions
2
votes
3
answers
199
views
Addition of 2 integers
I've implemented an algorithm found in a book. It adds 2 positive integers of equal size. How can it be improved? It is assumed that inputted data is always positive integers with an equal number of ...
7
votes
1
answer
872
views
Custom Big Integer class for Project Euler in C#
I'm trying to teach myself some programming and, working through the Project Euler problems, I've come across some instances where I've needed numbers that are larger than will fit into an int or long ...
5
votes
1
answer
2k
views
VERY simple C# Set implementation
This is not meant to solve any insane real world problems. I just want to make sure my Set logic is right and the code looks okay. It feels weird implementing it with a ...
12
votes
3
answers
15k
views
Simple C# HashTable Implementation
Haven't put one of these together since college. How does this look overall?
...
4
votes
5
answers
17k
views
Stack implementation in C#
I started to learn data structures. How can I improve my implementation? For example, I don't now how to push 0 or how to realize my own ...
4
votes
2
answers
287
views
Optimizing error-sorting method
I just made this sort method. It runs fine and the code looks okay in my eyes.
Is is possible to optimize it so it runs faster? If it's \$O(n^3)\$ now, it would be interesting changing it to \$O(n^2)...