Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are good C# Problems to solve for practice? [closed]

Tags:

c#

I am still learning a lot of C#. And would like to hone my skills for future interviews. What are some simple C# problems to solve? The last interview I did had a pretty simple problem in it that I kind of struggled with, don't want that to happen again.

like image 923
Khades Avatar asked Aug 04 '10 17:08

Khades


People also ask

What is C good at?

C is a general-purpose programming language and can efficiently work on enterprise applications, games, graphics, and applications requiring calculations, etc. C language has a rich library which provides a number of built-in functions. It also offers dynamic memory allocation.

Which C language is best?

C++ is an enhanced version of C. C++ includes all aspects of C and adds support for object-oriented programming (OOP). C++ also contains many improvements and features that make it a “better C,” independent of OOP.

Which is good C or C?

Compared to C++, C is the simpler and ultimately faster programming language. C is procedural and does not support classes and objects, meaning it has less functionality than C++.

What is better C+ or C?

C++ is object-oriented, bottom-up, and includes many high-level features. C is low-level, procedural, and top-down. C is still in use because it is slightly faster and smaller than C++. For most people, C++ is the better choice.


1 Answers

I realize this was 2 months ago, so you've probably become a C# master by now :)

But I've found the project euler problems to be very nice. They are all math problems, and they aren't language specific. So they won't help you with C# per se, but they will help wrap your mind around different ways to solve problems.

Just as an example, the first question is:

If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.

Find the sum of all the multiples of 3 or 5 below 1000.

I won't give away the answer, but it's pretty easy to figure out with code if you think about it. Hope this helps and good luck.

-jb

like image 135
jb. Avatar answered Sep 28 '22 22:09

jb.