programming

ArrayList vs LinkedList in Java

The ArrayList class implements a List Interface. So, this acts as a list. While the LinkedList class implements both List and Deque Interface. So, this acts as a both list and deque.

Deepak Prasad6 min read
programming

HashMap vs Hashtable vs HashSet in Java

HashMap is hash table based implementation of Map interface, Hashtable class implements a hash table, which maps keys to values. HashSet is a hash table based implementation of Set interface.

Deepak Prasad6 min read
programming

CopyOnWriteArrayList Class in Java [Complete Tutorial]

In this tutorial, we covered constructors and methods of CopyOnWriteArrayList class along with the important operations that can be performed using the built- in methods

Deepak Prasad7 min read
programming

8 different Escape Sequence in Java with Examples

An escape sequence in java refers to a character proceeded by a backslash(), the escape sequences have special meanings. In java, while declaring a string, a

Azka Iftikhar5 min read
programming

SOLVED: How to do Nodejs Base64 Encode & Decode

Failure to understand the Nodejs base64 encode process could hinder you from maximizing the runtime environment's potential in data transfer.

Steve Alila8 min read
programming

Create Map function for objects (instead of arrays) - Nodejs map

Object mapping enables you to handle data comfortably. However, the main challenge of implementing Nodejs map is that objects lack the native map method that

Steve Alila6 min read
programming

HackerRank Solution: Python Check Strict Superset

Explore four solutions for HackerRank's "Check Strict Superset" problem in Python. Learn how to use the issuperset method, the all function, for loops, and list comprehension to determine if a set is a strict superset of …

Deepak Prasad5 min read
programming

HackerRank Solution: Python Check Subset

Explore three solutions for HackerRank's "Check Subset" problem in Python. Learn how to use the issubset method, comparison operators, and a combination of for loops and the all function to determine if one set is a …

Deepak Prasad4 min read
programming

HackerRank Solution: Python Set Mutations

Explore three solutions for the HackerRank "Set Mutations" problem in Python. Learn how to use direct set methods, dynamic method calls with eval, and dictionary-based operations to perform set mutations and compute the …

Deepak Prasad4 min read
programming

HackerRank Solution: Python Symmetric Difference

In this tutorial, we provided multiple solutions for a HackerRank question on Python sets to identify the symmetric difference between two sets of integers. The first solution uses the symmetric_difference method for a …

Deepak Prasad5 min read
programming

HackerRank Solution: The Captain's Room

Explore three solutions for the HackerRank "Captain's Room" problem using Python. Learn how to use the Counter module, mathematical formulas, and set operations combined with loops and counting methods to identify the …

Deepak Prasad4 min read
programming

Learn Node.js debugging Tips & Tricks [With Examples]

This tutorial teaches you how to get started with Node.js debugging on the terminal. You will not install any extension or package because we will utilize the

Steve Alila10 min read
programming

How to Compute Square in Java

There are four different ways to compute square of a number in Java, Using multiplication operator *, Using Math.pow() function, Using BigInteger.pow() function, Using Apache Commons Math API

Deepak Prasad7 min read
programming

How to fetch images from Node.js server

2 different ways to fetch images from node.js server using practical examples. Use built-in http module and express framework

Steve Alila5 min read
programming

SOLVED: Mask password with asterisk from console in Java

2 different ways to mask password with asterisk from console input in Java. Hide password with asterisk in Java. Display asterisk instead of password in Java input

Azka Iftikhar3 min read
programming

Hackerrank Solution: Validating credit card numbers in Python

validating credit card numbers hackerrank solution, validating credit card numbers hackerrank solution python, validating credit card numbers hackerrank solution python3

Bashir Alam5 min read
programming

Hackerrank Solution: Validating Email With a filter in Python

hackerrank valid email address regex, validating email addresses with a filter hackerrank solution, valid email address hackerrank, valid email address hackerrank solution in python, python functional hacker rank …

Bashir Alam5 min read
programming

Hackerrank Solution: Triangle Quest in Python [3 Methods]

triangle quest hackerrank solution, triangle quest 1 hackerrank solution in python, triangle quest 1 hackerrank solution in python, triangle quest 1 hackerrank solution in pythobn3

Bashir Alam3 min read
programming

Hackerrank solution: No Idea! in Python [5 Methods]

5 different ways to solve no idea hacker rank question with explanation in python and python3

Bashir Alam5 min read
programming

Hackerrank Solution: Find Angle MBC in Python [4 Methods]

4 different ways to solve find angle mbc hackerrank solution in python3.

Bashir Alam3 min read
programming

Hackerrank Solution: How to check leap year in Python

hackerrank leap year python, hackerrank solution write a function

Bashir Alam5 min read
programming

How to use Node.js REPL Effectively

node repl import, node.js repl commands, command to start node repl, node rep commands history

Steve Alila7 min read
programming

An in-depth Explanation of Node.js Global Objects

which choice is not a node.js global object, node js global variable across files, nodejs global typescript. JavaScript avails objects you can use in your Node script without importing. Some of the objects are Buffer, …

Steve Alila6 min read
programming

[SOLVED] Using golang while loop with Examples

golang while true, golang while loop example, golang infinite loop, golang while loop through structs, maps, interface. golang while loop through slice, arrays, range

Antony Shikubu10 min read
programming

2 ways to add fractions in Java [Practical Examples]

Multiple code examples to show how to add fractions in Java. Add two or multiple fractions.

Azka Iftikhar4 min read
programming

NumberFormat Class in Java Explained

Some of the task performed by the NumberFormat class in Java are Formatting Numbers, Setting number of Digits in Fraction part, Rounding Numbers, Formatting Percentage, Formatting Currency

Deepak Prasad6 min read
programming

Solved: Node.js create directory if doesn't exist

nodejs create folder, javascript make directory if not exists, create a node js application create a directory and the contents of the directory, node.js create directory if doesn't exists, nodejs create directory …

Steve Alila5 min read
programming

Nodejs write file simplified with 4 easy examples

Apart from knowing the structure of the fs module, you need to comfortably Nodejs write files ending in .txt, .html, .js, and .json extensions. That calls for

Steve Alila7 min read
programming

Solved: Get current directory in Node.js [4 Examples]

nodejs read current directory, node get current directory, node current directory, nodejs print current directory, nodejs current directory

Steve Alila4 min read
programming

Complete Tutorial on Node.js Passport

Node.js passport simplifies user authentication and authorization when building web applications. Despite the usefulness of passport.js, you may fail to

Steve Alila10 min read