This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Text.Json; | |
using VT = System.ValueTuple<int, int>; | |
class NoRepeatArr{ | |
Dictionary<VT, int> cache = new Dictionary<VT, int>(); | |
Dictionary<VT, VT> nextState = new Dictionary<VT, VT>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//digitSeq e digit | |
enum NodeType { | |
Enter, | |
Digit, | |
Exponent, | |
End, | |
BeforePoint, | |
Point, | |
AfterPoint, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// import { isNumber } from 'util'; | |
// class CurStep { | |
// wei : number | |
// curV : number | |
// } | |
// function IsNum( c : string) { | |
// return !isNaN(Number(c)) | |
// } | |
//特定长度的整数最高位 > 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum OpType { | |
None, | |
Remove, | |
Add, | |
Replace, | |
} | |
class MethodDetail { | |
method : OpType | |
num : number | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum OpType { | |
None, | |
Remove, | |
Add, | |
Replace, | |
} | |
class MethodDetail { | |
method : OpType | |
num : number | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//检查数量 满足 则 只Replace | |
//迭代修复 | |
//1中行为 修复多个问题 | |
//最优解 | |
//解决问题顺序 | |
//解决问题方法 | |
//所有解中的最优解决方案 | |
class LinkedNode<T>{ | |
data : T = null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum ProblemT { | |
Less, | |
More, | |
Same, | |
MisUp, | |
MisLow, | |
MisNum | |
} | |
class SNode { | |
start : number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//三种操作: | |
//构造 线段树 | |
//OP1 某个节点+Sum Value 叶子节点加值 | |
//OP2 Range 范围加值 从根节点 如果 Range 完全包含在当前Range之中 若Range 1个点则 直接加在叶子上 否则尽量加载中间节点上 | |
class SegNode { | |
left : SegNode = null | |
right : SegNode = null | |
allChild : SegNode[] = new Array<SegNode>() | |
sum : number = 0 | |
start : number = 0 //[] 闭区间 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Implements basic equals methods and bool converions, similar to UnityEngine.Object | |
/// </summary> | |
public class BaseObject | |
{ | |
public override bool Equals(object obj) | |
{ | |
return AreObjectsEqual(this, obj as BaseObject); | |
} | |
public override int GetHashCode() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
pwd = os.getcwd() | |
DEVELOPER = os.popen("xcode-select -print-path").read().strip() | |
os.environ["DEVELOPER"] = DEVELOPER | |
DEST= os.path.join(pwd, "opencore-amr-iOS") | |
os.environ["DEST"] = DEST |
NewerOlder