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
--- | |
Language: Cpp | |
# BasedOnStyle: LLVM | |
AccessModifierOffset: -2 | |
AlignAfterOpenBracket: Align | |
AlignArrayOfStructures: None | |
AlignConsecutiveMacros: None | |
AlignConsecutiveAssignments: None | |
AlignConsecutiveBitFields: None | |
AlignConsecutiveDeclarations: None |
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
BYTE UNIX Benchmarks (Version 5.1.3) | |
System: ARCH3: GNU/Linux | |
OS: GNU/Linux -- 5.8.10-arch1-1 -- #1 SMP PREEMPT Thu, 17 Sep 2020 18:01:06 +0000 | |
Machine: x86_64 (unknown) | |
Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8") | |
CPU 0: Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz (5190.1 bogomips) | |
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization | |
CPU 1: Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz (5190.1 bogomips) | |
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization |
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
class Solution { | |
public int strStr(String haystack, String needle) { | |
if (needle.isEmpty()) return 0; | |
return new KMPOptimized(haystack,needle).kmp(); | |
} | |
class KMPOptimized { | |
String text; | |
String pattern; | |
int[] T; |
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
@Override | |
public Object visitBlock(Block block, Object arg) throws Exception { | |
for (int i = 0; i < block.stats.size(); i++) { | |
Stat stat = block.stats.get(i); | |
try { | |
stat.visit(this, arg); | |
} catch (BreakException e) { | |
// need to know if break inside a loop | |
if (stat instanceof StatWhile || | |
stat instanceof StatRepeat) { |
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
public class LeftistHeap<E> { | |
// could be static class? | |
class Node { | |
E data; | |
Node leftChild, rightChild; | |
int s = 1; | |
public Node(E data) { | |
this.data = data; | |
} |
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
if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then | |
install_libbfd_p=yes | |
else | |
install_libbfd_p=no | |
fi) |
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
{ | |
"configs": [ | |
{ | |
"server": "a.b.c0.net", | |
"server_port": 52240, | |
"local_port": 1080, | |
"password": "12345", | |
"method": "aes-256-cfb" | |
}, | |
{ |
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
ProblemType: Crash | |
Architecture: amd64 | |
CrashCounter: 1 | |
CurrentDesktop: Unity | |
Date: Tue Sep 26 09:13:39 2017 | |
DistroRelease: Ubuntu 16.04 | |
ExecutablePath: /usr/bin/ss-qt5 | |
ExecutableTimestamp: 1502037653 | |
ProcCmdline: ss-qt5 | |
ProcCwd: /home/cedric |