-
Difference Between NTLM and Kerberos?
Windows New Technology LAN Manager (NTLM) and Kerberos is a suite of security protocols offered by Microsoft to authenticate users identity and protect the integrity and confidentiality of their activity. NTLM is still supported by Microsoft, it has been replaced by Kerberos as the default authentication protocol in Windows 2000 and subsequent Active Directory (AD)…
-
Matrix Layer Rotation
Programming Language = C# You are given a 2D matrix of dimension and a positive integer . You have to rotate the matrix times and print the resultant matrix. Rotation should be in anti-clockwise direction. Rotation of a matrix is represented by the following figure. Note that in one rotation, you have to shift elements by one step only.…
-
HackerRank – Bigger is Greater
Programming Language = C# Lexicographical order is often known as alphabetical order when dealing with strings. A string is greater than another string if it comes later in a lexicographically sorted list. Given a word, create a new word by swapping some or all of its characters. This new word must meet two criteria: It must be greater…
-
HackerRank – Climbing the Leaderboard – Binary Search
Programming Language = C# Description: Alice is playing an arcade game and wants to climb to the top of the leaderboard and wants to track her ranking. The game uses Dense Ranking, so its leaderboard works like this: The player with the highest score is ranked number on the leaderboard. Players who have equal scores receive the…
-
Circular Array Rotation using LinkedList
HackerRank – Circular Array Rotation Programming Language – C# Description: John Watson knows of an operation called a right circular rotation on an array of integers. One rotation operation moves the last array element to the first position and shifts all remaining elements right one. To test Sherlock’s abilities, Watson provides Sherlock with an array of integers.…
-
PDF Viewer in asp.net
Here I am explaining how to create PDF Viewer in asp.net. Steps: 1) create Class Library Project Here I am give name OnlinePdfViewer. Here I am using c#.net. Write below code in to file. using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace OnlinePdfViewer { public class DisplayPdf :…
-
Convert Generic List In To DataTable
Create simple asp.net application with C#. Add new class (GenericToDataTable). using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Collections.Generic; using System.ComponentModel; using System.Reflection; public class GenericToDataTable { /// <summary> /// Default Constructor /// </summary> private GenericToDataTable() { } /// <summary> /// /// </summary> ///…