Post Only Coding Problems & Solutions Here | All Coding Guru's Dig In

Hello.I am facing a problem in css i have a folder named coding in it there are html and css files i also have an background image as

body {
background-image: url(background.jpg);
}

when i try to link it to css and load my browser it doesn’t showup .

PROBLEM 16
Permutation of a given string.

PROBLEM 17 PLEASE ANYONE CAN EXPLAIN

Additive number is a string whose digits can form additive sequence.
A valid additive sequence should contain at least three numbers. Except for the first two numbers, each subsequent number in the sequence must be the sum of the preceding two.
Given a string containing only digits '0'-'9' , write a function to determine if it’s an additive number.

Note: Numbers in the additive sequence cannot have leading zeros, so sequence 1, 2, 03 or 1, 02, 3 is invalid.

Example 1:

Input: “112358” Output: true
Explanation: The digits can form an additive sequence: 1, 1, 2, 3, 5, 8. 1 + 1 = 2, 1 + 2 = 3, 2 + 3 = 5, 3 + 5 = 8

Example 2:

Input: “199100199”
Output: true
Explanation: The additive sequence is: 1, 99, 100, 199. 1 + 99 = 100, 99 + 100 = 199

Scan the input string if it has 0 , return false.
Then scan it if the input string is of length less than 5 return false.
Else
Check if
Str[0]+str[1]+str[2]+str[3]==str[4]+str[5].
in short ge is askng if the inpt is fibonacchi or not
Look the pattern in formula above.let me know if you have any problems

Hey everyone,
I’ve created an POS Management System for a store where multiple users can be able to conduct sales or make manipulations to the Inventory. I would want to create a function that keeps a track of what actions a user does while logged in for the owner to know.

Please help been stuck for days !

Every user who will use the system must be logged in through a unique login ID, now create a tracker such that every action that will be taken on the system the unique Id should get associated and stored into a log file.

1 Like

What I did instead is that with each action that is done by a user, the information is stored in an ArrayList which makes it possible to display the information to the owner of the store to view

1 Like

Anyone still offering help ?
Trying to solve a python algorithm For each query, output on a separate line, the coordinates of the result, separated by a single space.

PROBLEM 18
Create class Python which defines parameters with attributes n (name) and v (value) and defines or overloads some useful methods.

1 Like

def micro(a, n, k):

miny = min(a)

if miny == k:

    return 0

else:

    i = 0

    while i < k:

        i += 1

    return i - miny

a = [2, 5, 5]

print(micro(a, 3, 2))