Sunday 31 March 2013

Stringed Numbers


Doing computation over numbers stored as strings can be challenging. Finding the sum or max among all numbers stored as strings would be easy, but sorting the “string” numbers without type-casting them to integer/double is tricky.

Here, we’ll see how Anonymous methods come to the rescue for sum & max operations and Sort & OrderBy functionality for sorting “string” numbers.


Thursday 28 March 2013

Interview Series – Raining Numbers


Relevant and Efficient parsing of data from raw files is of utmost importance to generate valuable information.

Here, we’ll see how to parse numbers from a file that are strung together without any delimiters.


Tuesday 26 March 2013

Interview Series – Poly Indexing


Finding the presence of particular streams of text is vital during Search Operations. Sometimes, finding the location of repeated occurrences of search-terms is even more vital.

Here, we’ll see how to find the indices of multiple occurrences of overlapping and non-overlapping streams of text in a string-input.


Monday 25 March 2013

Effective Data Validation


Data Validation is a very important task to ensure discrepancies don’t creep-into when you make valuable information out of them.

Here, we’ll know how to ensure the correctness of data retrieved as strings that hold numbers in them.


Sunday 24 March 2013

Interview Series - Currency Display


In many Financial and Accounting Applications, it’s very important to ensure that the Currency specifications are perfect.

Here in this setup of an Interview, we’ll see how to cater to the specific needs of Currency display depending upon the location where the systems are present.


Monday 18 March 2013

Thread Safety


Multi-threaded applications give a big boost to Code’s Performance and Scalability. But often times we need to be careful while using Thread-unsafe collections in these scenarios.

Here, we’ll know how to ensure proper dynamic allocation of memory to thread-unsafe collections and to perform Thread-Safe updates in them.


Sunday 17 March 2013

Array Resizing Optimization


Optimizing your C# code is fundamental for improving your Application's Performance and Scalability.

Here, we'll know the performance optimization involved when we explicitly specify an approximate size of the C# collection during its declaration.