🍎
Leetcode
  • README
  • Templates
    • interview_checklist
    • 🥰beauty of python
    • online IDE templates
    • time complexity analysis
  • Data structures
    • bit_operation
    • deque
    • hashtable
    • linked_list
    • priority_queue
      • Arrangement
      • Sort+PQ
    • stack
    • string
    • intervals
    • trie
    • graph
    • tree
  • Algorithm
    • bfs
    • binary_search
    • dfs
    • topological sort
    • dynamic_programming
    • greedy
    • union_find
    • recursion
    • two_pointers
    • Offline processing
  • Other
    • design
    • everything
    • math
  • Company
    • Tree
    • BinarySearch
Powered by GitBook
On this page
  • Coding templates
  • Online IDE templates
  • Coderpad
  • Online courses
  1. Templates

online IDE templates

  • Coding templates

  • Online IDE templates

    • Coderpad

      • Java

      • Python

    • Online courses

Coding templates

Math Binary_Index_Tree Segment Tree Inverse_Element Graph Bit_Manipulation Combination-Number RB_Tree IO

Online IDE templates

Coderpad

Java

import org.junit.*;
import org.junit.runner.*;
import java.io.*;
import java.util.*;

public class Solution 
{

    @Test
    public void test1()
    {
      /* 

      */
    }    

    @Ignore
    @Test
    public void test3()
    {
        /* 

        */
    }

    public static void main(String[] args) 
    {
        JUnitCore.main("Solution");
    }    

}

Python

import unittest

# import collections
from collections import deque
from collections import defaultdict
#from sortedcontainers import SortedList, SortedSet, SortedDict

import heapq
import re

class OnlineHackerRankCodePair(unittest.TestCase):

    @unittest.skip
    def test_Test1(self):
        self.assertEqual("a", "a")

    def test_Test2(self):
        self.assertFalse(False)
        
if __name__ == '__main__':
    unittest.main()

Online courses

  • 中文:https://learn.1point3acres.com/courses/succeed-in-google-interview/

Previousbeauty of pythonNexttime complexity analysis

Last updated 3 years ago