Skip to content

Instantly share code, notes, and snippets.

struct _IO_FILE
{
int _flags;
char *_IO_read_ptr;
char *_IO_read_end;
char *_IO_read_base;
char *_IO_write_base;
char *_IO_write_ptr;
char *_IO_write_end;
char *_IO_buf_base;
class Solution(object):
def top_down(self, i, j, nums, dp):
if dp[i][j] or j == i + 1:
# memoization
return dp[i][j]
if i > j:
return 0
got_coins = -10**9
ClosestBucketsIter new: distance 0010000100000001100001010011011101010011010101100110100110000011100100111100010010101011000001100000001111111010110011111110001100011111101001001111101100001000001100110001000111100100111000000001101100111011011111101000011100101100010001111000100100110001 0, state Start(BucketIndex(255))
next_in 00100001000000011000010100110111010100110101011001101001100000111001001111000100101010110000011000000011111110101100111111100011000111111010010011111011000010000011001100010001111001001110000000011011001110110111111010000111001011000100011110001001001-[1]-0001 [251th = 1] bucket_idx: BucketIndex(255) 254
next_in 0010000100000001100001010011011101010011010101100110100110000011100100111100010010101011000001100000001111111010110011111110001100011111101001001111101100001000001100110001000111100100111000000001101100111011011111101000011100101100010001111000100100-[1]-10001 [250th = 1] bucket_idx: BucketIndex(251)
next_in 001000010000000110000101001101110101001101010110011010011000001110
#[derive(Serialize, Deserialize)]
struct T {
#[serde(with = "peerid")]
tt: PeerId,
}
mod peerid {
use libp2p::PeerId;
use serde::{Deserialize, Deserializer, Serialize, Serializer};
(memory (;0;) 15)
(global (;0;) (mut i32) (i32.const 139552))
(global (;1;) i32 (i32.const 139552))
(global (;2;) i32 (i32.const 74016))
(export "memory" (memory 0))
(export "__heap_base" (global 1))
(export "__data_end" (global 2))
...
i32.store offset=12
block $label0
...
i32.const 1
i32.add
return
end $label0
...
call $__assert_fail
...
i32.store offset=12
block $label0
...
i32.const 1
i32.add
return
end $label0
...
call $__assert_fail
i32.store offset=12
block $label0
...
i32.const 1
i32.add
return
end $label0
...
call $__assert_fail
unreachable
#include <assert.h>
int foo(int a) {
assert(a == 1);
return a + 1;
}
call $qsort
drop