Sarmistha Panda

391 Flips | 5 Magazines | 259 Likes | 47 Followers | @SarmisthaPadc73 | Technical Architect

Singleton Design Pattern in Java

In this article, we will discuss : <br>– What is Singleton design pattern ?<br>– How to implement Singleton design pattern in java ?<br>– Effects of …

Scala Hello World program using Eclipse IDE

In this article, we will write a simple Hello World program in Scala using Eclipse IDE. <br>Refer following article, if you haven’t setup your Eclipse …

Java 9 : Try-with-Resources enhancement

try-with-resources Statement<p>Java 7 added a new feature try-with-resources that automates resource management.<p>It looks like this :<p>When the try block …

Java 8 : BiPredicate Functional Interface

BiPredicate<p>Similar to Predicate, a BiPredicate is used for filtering or matching and it returns a boolean value. However, it takes 2 arguments while …

Java 8 : BiConsumer Functional Interface

java.util.function.BiConsumer<p>BiConsumer is similar to a Consumer. It accepts two input parameters, but doesn’t return anything.<p>Example 1 : BiConsumer<p>1<p>…

Java 9 : Convenience Factory methods List.of(), Set.of() and Map.of() for creating immutable collections

Java 9 added new static factory methods on the List, Set, and Map interfaces make it simpler to create immutable instances of those …

JavaScript

Difference between Covariance and Contravariance in C# Generics

In this article, we will discuss:<p>Covariance in Generics<br>• Contravariance in Generics<br>• The difference between Covariance and Contravariance in …

C# – Breadth First Search (BFS) using Queue

In this article, we will write a C# program to implement Breadth First Search (BFS) using Queue<p>Breadth-first search (BFS) is an algorithm for …

C# – Coin change problem : Greedy algorithm

In this article, we will discuss an optimal solution to solve Coin change problem using Greedy algorithm.<p>A greedy algorithm is the one that always …

Understanding ArrayList remove() methods in Java

In this article, we will focus on the remove() methods provided by ArrayList to remove elements.<p>ArrayList provides two overloaded remove() methods .. …

C# Program to Illustrate Upper Triangular Matrx

In this article, we will write a C# program to illustrate Upper Triangular Matrix<p>What is Upper Triangular Matrix?<p>A square matrix is called upper …

Java 8 Date Time api

In this article, we will discuss the new Date Time api introduced in JDK 8.<p>A new Joda Time api was introduced in JDK 8 with the package java.time<p>Here …

Create a Circular Singly Linked List in C#

In this article, we will write a C# program to implement a Singly linked Circular linked List<p>Circular Linked List is a linked data structure.<br>– In the …

Swap two numbers without a temporary variable in java

In this article, we will discuss how to swap two numbers without using a temp variable in Java.<p>Swap numbers without temporary variable<p>We can swap two …

How to mask XML elements in Java while printing to log files

In this article, we will write a Java program to mask elements in an XML while printing.<p>This program traverses through the xml and if it finds …

Java program to reverse a String using recursion

In this article, we will write a recursive Java function reverse(String s) that returns the string s in …

Towers of Hanoi in C#

Towers of Hanoi or Tower of Brahma or Lucas’ Tower<p>Tower of Hanoi is a mathematical game or puzzle. It consists of three rods(towers), and a number of …

Java program to implement Stack using an array

Stack<p>A stack is a linear list in which items are added at one end and deleted from the same end.<p>The primary operations you perform with a stack are …

Towers of Hanoi in Java

Towers of Hanoi or Tower of Brahma or Lucas’ Tower<p>Tower of Hanoi is a mathematical game or puzzle. It consists of three rods(towers), and a number of …

C# Program to Implement Stack with Push and Pop operations

In this article, we will write a C# program to implement stack with Push and Pop Operations.<p>The primary operations you perform with a stack are Push …

Underscore.js escape and unescape functions

_.escape(string)<p>This function converts the characters &, <, >, “, `, and ‘ into their HTML escaped versions &, <, >, ", ` and …

Java program to implement Binary Search Tree and its Preorder, InOrder & Postorder traversal algorithms

Binary Search Tree<p>A binary tree is defined as a tree where each node can have no more than two children.<p>A binary search tree is a binary tree in …

C# Program to Implement Stack

In this article, we will write a C# program to Implement Stack with an example<p>The stack is one of the most frequently used data structures. We define …

C# Program to Delete nodes from Binary Search Tree

In this article, we will learn:<p>Removing a Leaf Node From a BST<br>• Deleting a Node With One Child<br>• Deleting a Node With Two Children<p>Removing a Leaf Node …

C# Program to Implement Binary Search Tree Traversal – Preorder,InOrder & Postorder

In this article, we will learn : Binary Search Tree Traversal in C#<p>Binary Search Tree Traversal:<p>You can learn how to implement Binary search Tree in …

Databases

C# program to find the most frequent element in an Array

In this article, we will learn different ways to find the most frequent element in an Array in C#.<p>Using Hashtable:<p>You can use Hashtable, to find the …

Extreme Sports

C# program to check for Matching Parentheses

In this article, the problem statement is to write a java program that can check and if a string has matching pair of parentheses or not. <br>For example,<p>…

Python Programming

C# – String Distance (Hamming Distance,Levenshtein Distance & Damerau-Levenshtein Distance) Algorithm

In this article, we will discuss:<p>Hamming Distance Algorithm<br>• Levenshtein Distance Algorithm<br>• Damerau-Levenshtein Distance Algorithm<p>1. Hamming Distance …

Dependency Inversion Principle in Java

Dependency Inversion Principle states to “Depend on abstractions and not upon concretions”.<p>What this principle means is that rather than writing code …

Top 10 Sorting algorithms in C#

Sorting algorithms:<p>A sorting algorithm is an algorithm that puts elements of a list in a certain order.<p>The most-used orders are numerical order and …