Skip to main content

Questions tagged [logic]

Logic refers to the ultimate flow of your code and how you arrive your desired solution. Questions should relate to finding a coding solution (or improving existing coding logic) to a given problem. Please use with an appropriate language tag, a thorough description of your logic, and the relevant code you're working on. General logic questions are off-topic. If you simply need a code review, consider https://codereview.stackexchange.com

-1 votes
3 answers
54 views

I have a Code Issue in Python Time Formatting Function [duplicate]

I've been working on a Python function to convert a given number of seconds into a readable time format (HH:MM:SS). The function works correctly for most test cases, but fails for a couple of specific ...
user23518388's user avatar
0 votes
0 answers
23 views

Alternatives to IF function

I have this formula - ((F29-((F29*((100-H25)/100))+(D29*0.5))) where F values are input H 25 is input and D values are input (F and D are from Data and H25 is manipulable. I get an answer, However It ...
Golf32Charlie's user avatar
-2 votes
2 answers
28 views

Problem in dynamically changing callendar view

Basically im trying to do some calendar knowledge , the calendar fetches the events from google , but thats not the issue. That part is done. I have this logic that im not being able to implement . ...
Kripthonite's user avatar
-2 votes
0 answers
32 views

i want to show three tier MLM Tree but it is not showing properly [closed]

I have a three-tier MLM tree with four levels: Basic, Gold, Silver, and Bronze. Gold, Silver, and Bronze are parallel to the Basic level. Every third member added under anyone becomes a Gold member. ...
Ali Usman Javed's user avatar
0 votes
0 answers
21 views

Base64 encoded SHA1 Binary in Azure Logic App

I am trying to get an Azure logic app to perform a service authentication against one of our providers' servers. The authentication algorithm is simple enough, javascript based, but they are expecting ...
J.W. Breeden's user avatar
-1 votes
1 answer
59 views

Adding simple logic in C# objects that are meant for one-time use [duplicate]

This is not a "how-to" question, but rather a "share your thoughts" question for senor C# developers. I'm a junior C# developer who has worked in C# for about a year (and in other ...
ogrim's user avatar
  • 1
0 votes
0 answers
7 views

Can't comprehend the logic of Bead Challenge on InterviewBit

So I've been practicing few coding question on InterviewBit and I came across 'Bead Challenge'. Here's the questions: You possess a vector A of size N, where Ai denotes the weight of the i-th bead ...
Derick Davies's user avatar
0 votes
0 answers
26 views

Why does fstreams have 1 cursor for both read & write? (Logically and technically) [duplicate]

Consider the next code: #include <iostream> #include <fstream> using std::fstream; int main() { fstream file("text.txt", ios::out| ios::in |ios::trunc| ios::binary); if (!file) ...
CS Student's user avatar
0 votes
3 answers
58 views

When I select the checkbox, it displays its value just fine. When I de-select it, it continues to display

In the image, I first selected the first two checkboxes and clicked to calculate. Then, I unchecked the second one and clicked again to calculate, and it gave me still both values and total price. ...
Ana Carolina's user avatar
2 votes
1 answer
68 views

Determine next building upgrade in Monopoly

Each street in Monopoly is comprised of 2 or 3 different properties. When a user upgrades a street, it will build 1 of 3 buildings on the appropriate property. House - least valuable, will build this ...
Will's user avatar
  • 398
-1 votes
0 answers
10 views

Design a Full Adder circuit using basic logic gates to perform binary addition with three inputs: A, B, and Cin (carry-in)

1.Design a Full Adder circuit using basic logic gates to perform binary addition with three inputs: A, B, and Cin (carry-in). 2.Provide a timing diagram illustrating the operation of the Full Adder ...
Joseph Kowero's user avatar
-1 votes
1 answer
41 views

Reversing a linked list-Find error in existing logic

/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ...
Prakritish Ghosh's user avatar
0 votes
1 answer
41 views

Python xlwings slow Execution when scanning Excel Sheet

I'm a beginner at Python. This code is for scanning Excel cells by range using xlwings however the process is very slow. I strictly need to use xlwings since it can retain my images and shapes unlike ...
Vinz's user avatar
  • 1
0 votes
1 answer
85 views

Logic app stand error while completeing msg from topic subscription: VNetPrivatePortsNotConfigured

I've received session messages from the Service Bus topic subscription using SB trigger: When a message is received in a topic subscription (peek-lock). Which doesn't delete the messages after ...
Deepak Shaw's user avatar
0 votes
0 answers
29 views

Calculate time it takes to sober up using BAC level and elapsed time

I am developing a drink tracker which would also be able to predict how long it takes approximately until the user fully sobers up after drinking. I implemented the following logic for the BAC ...
Andor Németh's user avatar

15 30 50 per page
1
2 3 4 5
629