Click here to Skip to main content
15,893,486 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Four fours Pin
jmaida13-Oct-21 15:05
jmaida13-Oct-21 15:05 
GeneralRe: Four fours Pin
mdblack9814-Oct-21 3:42
mdblack9814-Oct-21 3:42 
GeneralRe: Four fours Pin
Amarnath S14-Oct-21 4:06
professionalAmarnath S14-Oct-21 4:06 
GeneralRe: Four fours Pin
Harald M.19-Oct-21 23:34
Harald M.19-Oct-21 23:34 
GeneralRe: Four fours Pin
mdblack9820-Oct-21 2:46
mdblack9820-Oct-21 2:46 
GeneralRe: Four fours Pin
Harald M.20-Oct-21 3:51
Harald M.20-Oct-21 3:51 
GeneralRe: Four fours Pin
mdblack9820-Oct-21 4:03
mdblack9820-Oct-21 4:03 
GeneralRe: Four fours Pin
Harald M.20-Oct-21 4:12
Harald M.20-Oct-21 4:12 
Ok - fine Smile | :) In other words, what you did does not take any useful step in any sensible direction for solving the problem Big Grin | :-D

For this, one would need to create all possible expression trees fulfilling the stated properties (e.g., exactly four leaves with constant 4, only the given operator node types) and collecting the trees and their expression results. A suitable pruning condition could prevent creation of trees definitely not yielding results in {1...100} (although I don't see what a simple pruning condition would look like; maybe two stacked exponentations can always be excluded* or thereabouts).

* Not true: 4^(4^(4-4)) is a valid solution for value 4, and (4^4)^(4-4) is a valid solution for value 1.
GeneralSelectively block USB devices from connecting to PCs Pin
Toto110713-Oct-21 1:59
professionalToto110713-Oct-21 1:59 
GeneralRe: Selectively block USB devices from connecting to PCs Pin
Richard MacCutchan13-Oct-21 5:31
mveRichard MacCutchan13-Oct-21 5:31 
GeneralRe: Selectively block USB devices from connecting to PCs Pin
Dan Neely13-Oct-21 11:00
Dan Neely13-Oct-21 11:00 
GeneralRe: Selectively block USB devices from connecting to PCs Pin
glennPattonWork313-Oct-21 8:28
professionalglennPattonWork313-Oct-21 8:28 
GeneralRe: Selectively block USB devices from connecting to PCs Pin
Dan Neely13-Oct-21 11:04
Dan Neely13-Oct-21 11:04 
GeneralRe: Selectively block USB devices from connecting to PCs Pin
englebart14-Oct-21 2:00
professionalenglebart14-Oct-21 2:00 
GeneralRe: Selectively block USB devices from connecting to PCs Pin
Stuart Dootson14-Oct-21 5:00
professionalStuart Dootson14-Oct-21 5:00 
GeneralCCC 2021-10-13 Pin
NeverJustHere12-Oct-21 22:14
NeverJustHere12-Oct-21 22:14 
GeneralRe: CCC 2021-10-13 Pin
OriginalGriff12-Oct-21 22:26
mveOriginalGriff12-Oct-21 22:26 
GeneralRe: CCC 2021-10-13 Pin
NeverJustHere12-Oct-21 22:27
NeverJustHere12-Oct-21 22:27 
GeneralRe: CCC 2021-10-13 Pin
OriginalGriff12-Oct-21 22:30
mveOriginalGriff12-Oct-21 22:30 
GeneralRe: CCC 2021-10-13 Pin
Peter_in_278012-Oct-21 23:04
professionalPeter_in_278012-Oct-21 23:04 
GeneralRe: CCC 2021-10-13 Pin
pkfox12-Oct-21 23:09
professionalpkfox12-Oct-21 23:09 
GeneralWindows 11: Another Microsoft misfire - yuck! Pin
Cp-Coder12-Oct-21 11:01
Cp-Coder12-Oct-21 11:01 
GeneralRe: Windows 11: Another Microsoft misfire - yuck! Pin
Super Lloyd12-Oct-21 13:34
Super Lloyd12-Oct-21 13:34 
GeneralRe: Windows 11: Another Microsoft misfire - yuck! Pin
GuyThiebaut13-Oct-21 3:40
professionalGuyThiebaut13-Oct-21 3:40 
GeneralRe: Windows 11: Another Microsoft misfire - yuck! Pin
Dan Neely13-Oct-21 8:32
Dan Neely13-Oct-21 8:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.