Write down a program to generate Fibonacci no series -This is yet another commonly asked problem in programing interviews. Although there are multiple ways of solving this problem. Here I would show you the most simple method to do it. Also this method is efficient from a performance perspective. public static List<int> GetFibonacciSeries(int number) {... Continue Reading →
Good web development blogs and articles
This page contains links to good technical articles and blogs which I found out useful in my website development work in .NET stack and I often use for them reference. How To Style HTML5 Range Slider Across Multiple BrowsersException handling in Sql serverDetecting KeystrokesC# interview question and answers for junior software developer.Web Assembly - simple... Continue Reading →
Check if a number is Prime number or not in C#
Write down a program to check if a number is Prime number or not -This is yet another commonly asked problem in programing interviews. Although there are multiple ways of solving this problem. Here I would show you the simple straight forward method (better performance) to do it. public static bool IsPrimeNo(int number) { bool... Continue Reading →
Sum of digits of a number in C#
This is one of the most commonly asked questions in programming contests and also interviews. How to find sum of the digits of an integer number. Here is the solution : The function SumOfDigits accepts an integer number as an input parameter. Here first we take the absolute value or |number| so it will accommodate... Continue Reading →
Logging error in ASP.NET web Api 2
This is in continuation to my earlier post https://kishalayab.wordpress.com/2018/05/20/logging-request-response-in-asp-net-mvc-web-api/ . Here I'll show you as to how we can write logs in the scenario of an unexpected error occurring in your application. I'll skip the steps to show how to register log4net and other boiler plate codes as it is already described in the earlier... Continue Reading →