MCPcopy Create free account
hub / github.com/Ainevsia/Leetcode-Rust / oper

Method oper

679. 24 Game/Solution.cpp:51–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 double oper(Ops op, double x, double y) {
52 switch (op) {
53 case Add:
54 return x + y;
55 case Minus:
56 return x - y;
57 case Mul:
58 return x * y;
59 case Div:
60 return x / y;
61 default:
62 return x;
63 }
64 }
65
66 void next_permutation(vector<int> & nums) {
67 int i = nums.size() - 1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected