Nikitasha Shrivastava

Nikitasha Shrivastava

163 Articles Published

Articles by Nikitasha Shrivastava

Page 5 of 17

How to move and overwrite files and folders using Python?

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 16-Oct-2023 3K+ Views

The files are very important documents in our systems. In files we store our important data and moving these files is also an important task to organize the system. So we will learn how to move and also overwrite the files and folders using Python modules. Understanding the Logic for the Problem The problem at hand is that we have to create a code for moving and overwriting the files and folders in Python. For solving this problem we will import os and shutil libraries of Python. So with the help of these libraries we can move and overwrite the ...

Read More

Finding the Summation of Nested Record Values in Python

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 16-Oct-2023 147 Views

The problem statement requires finding the summation of nested record values using Python. Sometimes we are required to add the values present in the data so that time this approach can be useful as record is the powerful dataset in terms of updating or manipulating the data using the keys. Understanding the Problem The given problem is to find the addition of values in the given record so here we will be using the nested dictionary as a record. And we will implement the code using Python. And the nested dictionaries are the dictionary inside the dictionary. And we have ...

Read More

Finding the Summation of Nested Dictionary Values in Python

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 16-Oct-2023 986 Views

Sometimes we need to sum up the values of nested dictionary values so in this problem statement we are required to find the summation of the nested dictionary values using Python. Understanding the Problem The problem at hand is to find the summation of values present in the nested dictionary and we have to implement the code using Python. So the nested dictionaries are the dictionary inside the dictionary. And we have to find the nested values and sum them up as a result. Sum for all the Nested Dictionary Values In this approach we will add all the values ...

Read More

Find the Mirror Image of a String using Python

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 16-Oct-2023 669 Views

In the given problem statement we are required to find the mirror image of a given string with the help of Python code. Understanding The Problem The problem at hand is to find the mirror image of the given string. The mirror image is the changed version of the given string in which every character is replaced with the mirror image of that character. Or we can say it is the reflection of the string. In real life we see ourselves in the mirror so our right part is visible in the left side in the mirror and similarly the ...

Read More

Maximum decreasing adjacent elements in JavaScript

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 23-Aug-2023 244 Views

In the given problem statement we are asked to find out maximum decreasing adjacent elements with the help of javascript functionalities. This problem can be solved with the help of a simple algorithm in javascript. Understanding the Logic Explaining the logic of the problem statement in more detail. The problem asks us to get the maximum number of decreasing adjacent items in an array or we can say we have to find the longest decreasing subarray in the input array. So for solving this problem we need to work by iterating all over the array, one item at a time ...

Read More

Mapping an array to a new array with default values in JavaScript

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 23-Aug-2023 982 Views

In the given problem statement we are required to map an array to a new array with default values with the help of javascript functionalities. In Javascript we have some built−in function to map an array to a new array as per the condition and requirement. What is an array in Javascript ? An array is a collection of similar data elements under one roof. So let's understand the overall working process of arrays in JavaScript. An array is an object that contains one or more elements. Example const arr = ['A', 'B', 'C', 'D']; console.log(arr); Output [ ...

Read More

Manipulating objects in array of objects in JavaScript

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 23-Aug-2023 4K+ Views

In the given problem statement we are asked to manipulate objects in an array of objects with the help of javascript functionalities. In Javascript we have some built−in functions called map(), reduce(), forEach() and filter() to manipulate the objects in an array. We can solve this problem with the help of these functions. What is the manipulating object in an array ? Let's understand the manipulation of objects in an array. Manipulation means updating an array object, deleting an array object or adding an object in an array. In Javascript, there are several methods present to do these kinds of ...

Read More

Manipulate Object to group based on Array Object List in JavaScript

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 23-Aug-2023 332 Views

The Given problem is stating to manipulate objects to group based on the output array object list with the help of javascript. Understanding the problem Before starting to write algorithms and programmes for the given problem first we will understand the logic behind the problem. Consider a set of objects that each represents a person and has details about that individual, such as person, age, and profession. We need to make a group of persons with the same profession. For instance, we wish to build an object whose properties each indicate a job and whose values are an array of ...

Read More

Make an array of another array\'s duplicate values in JavaScript

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 23-Aug-2023 1K+ Views

In the given problem statement we are asked to make an array of another array’s duplicate values with the help of javascript functionalities. As we talk about duplicate values in an array means we have to find the exact elements present in the first array. What is an array in JavaScript ? Let's understand the working of an array in JavaScript. An array is an object that stores multiple elements. In programming, an array is a collection of similar data elements under one roof. Since an array is also an object, it has some properties and methods that work with ...

Read More

JSON group object in JavaScript

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 23-Aug-2023 855 Views

In the given problem statement we are asked to group the JSON object with the help of javascript functionalities. This problem can be solved with the help of a simple algorithm in javascript. What is JSON ? JSON (Javascript Object Notation) is lightweight data which can be transferred between two devices. This data can be read and written by humans. JSON objects are represented in the form of key−value pairs. Keys are strings to define values. In JSON each entry is separated by a semicolon. For example − {“Car” : “Audi”}, in this example Car is a key and Audi ...

Read More
Showing 41–50 of 163 articles
« Prev 1 3 4 5 6 7 17 Next »
Advertisements