coderz.py

Keep Coding Keep Cheering!

DSA: SubArray

What is a SubArray? A subarray is a sequence of elements within an array that is contiguous. In other words, a subarray is a section of an array that contains consecutive elements in the same sequence as the original array. Subarrays can range in length from a single element (also considered a subarray) to the […]

April 12, 2023 | Data Structure | No comments

Array Carry Forward

What is Carry Forward? The word “carry forward” does not refer to a specific idea in data structures and algorithms. However, “carry forward” in the context of arrays often refers to the process of relocating entries in an array to fill in empty spaces left by deleted or removed elements. This is also referred to […]

April 12, 2023 | Data Structure | No comments

DSA: Concept of Array

A group of related data elements stored at adjacent memory locations is referred to as an array. One of the most basic data structures, it allows for random access to each data element by its index number. Properties of an Array: Arrays contain a number of crucial characteristics that make them helpful in a wide […]

April 9, 2023 | Data Structure | No comments

Introduction to Singly Linked List

Singly Linked List Singly Linked List is a linear and connected data structure made of Nodes. Each node is composed of a variable data where its content (actual value) is stored and a pointer to the next Node (next node location) on the list. The Linked List has a pointer to the first element of this Node […]

March 27, 2022 | Data Structure | No comments

CSV FILE FORMAT

A comma-separated values (CSV) file is a delimited text file that uses a comma to separate values. Each line of the file is a data record.

November 14, 2021 | Dataweave, Mule 4, Mulesoft | No comments

Reverse a String in Python

This interview question requires you to reverse a string using recursion. Make sure to think of the base case here.

November 7, 2020 | Algorithm, Data Structure, python | No comments

Implement a Queue Using Two Stacks in Python

Given the Stack class below, implement a Queue class using two stacks

October 21, 2020 | Data Structure, python | No comments

Balanced Parentheses Check in Python

Given a string of opening and closing parentheses, check whether it’s balanced. We have 3 types of parentheses: round brackets: (), square brackets: [], and curly brackets: {}.

October 12, 2020 | Algorithm, Data Structure, python | No comments

Largest Continuous Sum in Python

Given an array of integers (positive and negative) find the largest continuous sum.

October 2, 2020 | Algorithm, Data Structure, python | No comments

Find the Missing Element in Python

Consider an array of non-negative integers. A second array is formed by shuffling the elements of the first array and deleting a random element. Given these two arrays, find which element is missing in the second array.

September 28, 2020 | Algorithm, Data Structure, python | No comments

Advertisement