programming

How to archive username in Java?

To "archive the username" in Java means to store the username for later access and retrieval. This may mean storing the username in a variable, class field,

Deepak Prasad5 min read
programming

HackerRank Solution: Finding the Percentage

The provided code stub will read in a dictionary containing key/value pairs of name: for a list of students. Print the average of the marks array for the

Bashir Alam5 min read
programming

HackerRank Solution: Python Nested Lists [4 Methods]

In this tutorial we will cover 4 different methods to solve python nested list hackerrank solution using different functions and modules.

Bashir Alam5 min read
programming

HackerRank Solution: Find the Runner-up Score!

In this tutorial we cover 4 different methods to solve find the runner up score hackerrank solution using different python functions and modules

Bashir Alam5 min read
programming

HackerRank Solution: List comprehensions

In this tutorial we explore 3 different methods to solve Python List Comprehension of Basic Data Types problem from Hacker Rank

Bashir Alam5 min read
programming

HackerRank Solution: Python Division

We can solve the Python division hackerrank problem using single or multiple print methods. There are 2 possible solutions.

Bashir Alam3 min read
programming

HackerRank Solution: Python Company Logo

company logo hackerrank solution python, company logo hackerrank solution python3, hackerrank solution for company logo in python

Bashir Alam4 min read
programming

HackerRank Solution: ginortS in Python

ginorts hackerrank solution, athlete sort hackerrank solution

Bashir Alam4 min read
programming

HackerRank solution: Python Triangle Quest 2

triangle quest hackerrank solution, triangle quest 2 hackerrank solution, triangle quest 2 hackerrank solution python3, triangle quest 2, triangle quest 2 hackerrank

Bashir Alam4 min read
programming

HackerRank Solution: Words Score in Python

Input format:

Bashir Alam7 min read
programming

HackerRank Solution: Python If-Else

This tutorial explains different solution to solve hackerrank problem Python if else from Introduction section.

Bashir Alam4 min read
programming

HackerRank Solution: The Minion Game

In this tutorial we will share multiple solutions for the minion game from hackerrank.

Bashir Alam6 min read
programming

HackerRank Solution: Python Arithmetic Operators

We can solve python arithmetic operators hackerrank problem using either single print or with multiple print statements

Bashir Alam3 min read
programming

HackerRank Solution: Classes - Dealing with complex numbers Python

Learn how to solve classes: dealing with complex numbers which is asked in HackerRank

Bashir Alam4 min read
programming

HackerRank Solution: Martix Script [Python Regex]

In this tutorial we will cover multiple methods to solve matrix script from hackerrank solutions.

Bashir Alam5 min read
programming

SHELL/BASH: How to create an interactive calculator in Linux

Sample shell script to create an interactive calculator using bc command to perform add, subsctract, multiply. divide, sine, cosine etc mathematical function.

Deepak Prasad3 min read
programming

Calculate Loan EMI Amount in Bash script Linux

Calculate loan EMI amount, interest and principle using bash or shell script in Linux with example. The script can be created online and runtime value.

Deepak Prasad5 min read
programming

HackerRank Solution: Python Pilling Up [Collections]

There are 3 methods to solve hackerrank python piling up problem. Using collection module, Using loops, Using if-else statement

Bashir Alam5 min read
programming

How to trim leading and trailing spaces GO?

In this tutorial, we are going to examine some examples of trim leading and trailing white spaces of a string in Golang. Golang provides the built-in package

Tuan Nguyen3 min read
programming

Golang array contains specific element or not? [SOLVED]

In this tutorial we have covered different examples to cover golang array contains elements. Use for loop to check for string, int or float64 element in array or using slices.contains

Tuan Nguyen5 min read
programming

Golang concatenate or merge two or more slices

We can use copy() and append() function to merge or concatenate two or more slices in Golang.

Tuan Nguyen4 min read
programming

Golang Concat Slices - Remove Duplicates

In this article we learn about different methods which can be used to golang concat slices and remove duplicates

Tuan Nguyen5 min read
programming

Using golang constants in struct

In general, golang does not allow declaring a constant struct and constant within a struct. But we can use a custom function to perform this purpose

Tuan Nguyen3 min read
programming

Remove fields from struct or hide them in JSON

Learn how to remove fields from struct in golang or hide them.

Tuan Nguyen5 min read
programming

How to set default values in GO structs?

There are multiple ways to set default values in go struct. We have explored some of the possible ways such as using an init function, using a separate constructor function or using struct tags

Tuan Nguyen3 min read
programming

What is the zero value for time.Time in GO?

The zero value of type Time is January 1, year 1, 00:00:00.000000000 UTC. The IsZero() method returns whether a time has a zero value or not.

Tuan Nguyen3 min read
programming

Print a list in reverse order with range()?

In this article we will learn how we can print a list in reverse order with range() in Python for which first we need to know what range() is and how it works.

Azka Iftikhar4 min read
programming

How to save form data in MySQL table Node.js?

This tutorial shows you how to Node.js save form data in MySQL table step-by- step. We will install and configure MySQL on the local machine before creating a

Steve Alila6 min read
programming

Golang Benchmark and Testing [Step-by-Step]

Step by step instructions to perform golang benchmarking and testing

Deepak Prasad8 min read
programming

Install Golang on Windows

Step by Step instructions to install golang on WIndows using official archive and choclatey

Tuan Nguyen4 min read