Forward and backward iterations in Python
Imagine your in a situation that needs to go through the elements of a list in backward order. To achieve this we need to read the last element first and then the last but one and so on till the element at index 0…
Problem statement: Given a string
s consisting of open and closed brackets
")", return the length of the longest substring in
s that is a valid string of parentheses.
s = ")(())(()"
"(())" is the longest substring with valid parentheses.
Naive approach: Find all…
Question: You are given a lowercase alphabet string
text. Return a new string where every character in
text is mapped to its reverse in the alphabet, so that
x, and so on.
text = "abcdef"
Find a new…
OOP is the most popular way of analysing, designing, and developing application systems, especially on complex scientific computing software systems. The perspective that views the elements of a given situation by decomposing them into objects and object relationships. This approach used to design modular and reusable software systems.
Computer Science actually came from Mathematics. Many mathematicians are programmers that have written their programs in the words of Mathematics, using mathematical notation.
As mathematicians’ problem-solving techniques became more sophisticated and the problems they were solving became more complex, they were interested in finding automated ways of solving these problems…
What is the fuzz about microcontrollers?
The generic definition of a microcontroller is a small, low-cost and self-contained computer-on-a-chip that can be used as an embedded system. A microcontrollers work at clock rate frequencies, which usually include:
Linear programming is a special case of mathematical programming, also known as mathematical optimization. Linear optimization is a mathematical programming technique to obtain the best result or outcome, like maximum profit or least cost, in a mathematical model whose requirements are represented by linear relationships.
Pillars of LP: