Skip to content

Instantly share code, notes, and snippets.

View ijingo's full-sized avatar
🐽

WANG Ji 王冀 ijingo

🐽
View GitHub Profile
@ijingo
ijingo / JoinChannelAudio.cs
Created February 2, 2024 10:37
agora_ains
using System;
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Serialization;
using Agora.Rtc;
namespace Agora_RTC_Plugin.API_Example.Examples.Basic.JoinChannelAudio
public class ListNode {
public int val;
public ListNode next;
public ListNode(int val=0, ListNode next=null) {
this.val = val;
this.next = next;
}
}
public class Solution {
#include <iostream>
#include <vector>
struct ListNode {
int val;
ListNode* next;
ListNode(): ListNode(0, nullptr) {}
ListNode(int x): ListNode(x, nullptr) {}
ListNode(int x, ListNode* next): val(x), next(next) {}
};
# Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Codec:
def serialize(self, root):
type TreeNode struct {
Val int
Left *TreeNode
Right *TreeNode
}
type Codec struct {
}
#include <iostream>
#include <string>
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
package com.company;
public class Main {
static class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) { val = x; }
}
package com.company;
import java.util.Date;
import java.util.List;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
Queue queue = new Queue(3);
@ijingo
ijingo / vimrc
Last active March 13, 2018 16:09
.vimrc
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1
set fileencoding=utf-8
set encoding=utf-8
set termencoding=utf-8
set guifont=Inconsolata\ for\ Powerline:h14
" <Leader> key
let mapleader=";"
@ijingo
ijingo / wc.go
Created November 19, 2016 10:05
package main
import (
"fmt"
"mapreduce"
"os"
"strconv"
"strings"
"unicode"
)