i can say u r so professional if u finish it just after 1 day

it contain many things and it will improve ur programming for sure

the programs in Attachment file

if anyone just try to start it ,,, let me know 2day plz

and connect with me at <snip email>

Dani AI

Generated

This thread centers on a set of challenging C# exercises. Moderation and homework concerns have already been raised by , and while signaled an intent to learn. To keep the work educational and acceptable to the community, a learning-first process is suggested rather than posting full solutions.

Recommended workflow for a single hard exercise:

  • Read the problem until the inputs, outputs and constraints are crystal clear.
  • Create 5 to 10 small example cases (including edge cases) and write expected outputs.
  • Pick a simple, correct (possibly slow) approach first. Prove correctness on the examples.
  • Measure and inspect complexity; only then optimize or choose a different algorithm or data structure.
  • Add unit tests and refactor into small, well-named functions so each piece can be reasoned about and debugged.
  • Use the debugger and logging to inspect variable state rather than guessing where things fail.

Small test skeleton (xUnit) to drive incremental development:

// xUnit skeleton
[Fact]
public void ExampleCase()
{
    // arrange
    // act
    // assert
}

Common C# pitfalls to watch for: off-by-one errors, null and reference checks, mutability of shared state, unintentionally expensive LINQ queries, recursion depth and stack overflow, and failing to dispose IDisposables. Official language and API guidance is authoritative; see the C# documentation for reference and patterns (C# Guide). For test-first development and examples, xUnit documentation is a practical place to start (xUnit).

Recommended Answers

All 6 Replies

Please read the rules and information in my signature. We do not do your homework.

it`s not for homework man
it`s for learning ,,, and i wanna help now to learn
tomorrow ,,i will help another to learn

Dude that's kind of insulting. That is straight up a homework assignment.

I hate to sound rude, but please. You could Google the answers for this stuff. :(

Are u kidding??

This forum is made in order that devlopers help each other and not to do homework please!!!

Sorry Jugortha cuz i have another big problem in Oracle and i said it`s not homework,,,
but u believed Moderator
whatever i will delete this topic,,,sorry again

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.