How to perform Array Element Parity in Golang
The challenge
You will be given an array of integers whose elements have both a negative and a positive value, except for one integer that is either …
Read Article →In-depth guides, insights, and best practices for modern software engineering
You will be given an array of integers whose elements have both a negative and a positive value, except for one integer that is either …
Read Article →Given a string str, reverse it omitting all non-alphabetic characters.
For str = "krishan", the output should be …
Get the ASCII value of a character.
Option 1:
val getAscii = Char::toInt
Option 2:
fun getAscii(c: Char) = c.code …
Read Article →
You have 2 options:
npx)npx npm-check-updates -u
npm install
npm globally)npm i -g …
Read Article →
Take the following IPv4 address: 128.32.10.1 This address has 4 octets where each octet is a single byte (or 8 bits).
Finish the solution so that it takes an input n (integer) and returns a string that is the decimal representation of the number grouped …
You have 3 options here:
tee with sedsed 's/Hello/Hi/g' file-name | tee file
> with sedsed …
Read Article →
If you have a BigNumber when using web3, then you can convert this to a regular Javascript Number using the ethers library as follows: …
Write a function that when given a number >= 0, returns an Array of ascending length subarrays.
pyramid(0) => [ ]
pyramid(1) => …
Read Article →
Your job is to create a calculator which evaluates expressions in Reverse Polish notation.
For example expression 5 1 2 + 4 * + 3 - …
If you need to declare a global variable in React, then you can do the following:
Create a file called config.js
module.exports = global.config = { …
Read Article →
An Arithmetic Progression is defined as one in which there is a constant difference between the consecutive terms of a given series of …
Read Article →