Skip to main content

All 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 ...
gmail user's user avatar
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 ...
Steelilack's user avatar
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 ...
user avatar
12 votes
3 answers
15k views

Simple C# HashTable Implementation

Haven't put one of these together since college. How does this look overall? ...
user avatar
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 ...
Anatoly's user avatar
  • 296
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)...
radbyx's user avatar
  • 143