Showing posts from September, 2020

Create a Text Parser in C# with ANTLR

This post will show you how to write a simple DSL in C# using ANTLR. What is DSL? A domain-specific language is a computer language specialized to a particular application domain. This is in contrast to a general-purpose l…

How to create csv parser in C#

Parsing CSV using ANTLR in c# This blog post will show you how to parse the CSV file using ANTLR in C#. CSV is a very popular format for transferring data. There is a lot of C# csv parser available on the internet but you can e…

How to Implement Dense Rank With Linq

In data analysis and reporting, it’s common to assign rankings to a dataset based on certain criteria. One common type of ranking is “dense rank,” which assigns unique ranks to each distinct item in the dataset, with no gaps b…

Find Next Greater Element using Stack using Visualization

The Next Greater Element problem is a classic problem that involves finding the next larger element for each element in an array. The problem can be defined as: Problem Statement Given an array of integers, for each element, …

How to Solve the Valid Parentheses-Leetcode

When it comes to coding interviews, the problem of validating parentheses is a classic and fundamental problem that appears frequently. It tests your understanding of data structures, particularly stacks, and your ability to app…

Load More
That is All