Skip to content

Commit

Permalink
Use single line imports where possible (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
spring1843 authored Jun 26, 2024
1 parent adc15f7 commit cb47c27
Show file tree
Hide file tree
Showing 33 changed files with 33 additions and 99 deletions.
4 changes: 1 addition & 3 deletions array/find_duplicate_in_array_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package array

import (
"testing"
)
import "testing"

/*
TestFindDuplicate tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions bit/oddly_repeated_number_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package bit

import (
"testing"
)
import "testing"

/*
TestOddlyRepeatedNumber tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions dnc/binary_search_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package dnc

import (
"testing"
)
import "testing"

/*
TestBinarySearch tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions dp/house_robber_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package dp

import (
"testing"
)
import "testing"

/*
TestMaxHouseRobber tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions dp/interleaving_string_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package dp

import (
"testing"
)
import "testing"

/*
TestIsInterleavingString tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions dp/minimum_deletion_to_make_palindrome_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package dp

import (
"testing"
)
import "testing"

/*
TestMinimumDeletionsToMakePalindrome tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions dp/sum_up_to_integer_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package dp

import (
"testing"
)
import "testing"

/*
TestSumUpToInteger tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions dp/word_distance_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package dp

import (
"testing"
)
import "testing"

/*
TestWordDistance tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions graph/dijkstra_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package graph

import (
"testing"
)
import "testing"

type dijkstraTestCase struct {
graph []*dijkstraVertex
Expand Down
4 changes: 1 addition & 3 deletions graph/employee_headcount_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package graph

import (
"testing"
)
import "testing"

/*
TestEmployeeHeadCount tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions graph/number_of_islands_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package graph

import (
"testing"
)
import "testing"

/*
TestNumberOfIslands tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions greedy/jump_game_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package greedy

import (
"testing"
)
import "testing"

/*
TestJumpGame tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions greedy/knapsack_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package greedy

import (
"testing"
)
import "testing"

/*
TestKnapsack tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions heap/kth_largest_element_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package heap

import (
"testing"
)
import "testing"

/*
TestKthLargestElement tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions linkedlist/join_sorted_lists_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package linkedlist

import (
"testing"
)
import "testing"

/*
TestJoinTwoSortedLinkedLists tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions linkedlist/keep_repetitions_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package linkedlist

import (
"testing"
)
import "testing"

/*
TestKeepRepetitions tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions linkedlist/reverse_in_place_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package linkedlist

import (
"testing"
)
import "testing"

/*
TestReverseLinkedList tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions linkedlist/serialization_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package linkedlist

import (
"testing"
)
import "testing"

/*
TestSerializeAndUnserializeLinkedList tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions queue/generate_binary_numbers_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package queue

import (
"testing"
)
import "testing"

/*
TestGenerateBinaryNumbers tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions recursion/climbing_stairs_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package recursion

import (
"testing"
)
import "testing"

/*
TestClimbingStairs tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions recursion/exponentiation_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package recursion

import (
"testing"
)
import "testing"

/*
TestPowerOf tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions recursion/expression_operators_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package recursion

import (
"testing"
)
import "testing"

/*
TestExpressionOperators tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions recursion/is_palindrome_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package recursion

import (
"testing"
)
import "testing"

/*
TestIsPalindrome tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions recursion/multiplication_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package recursion

import (
"testing"
)
import "testing"

/*
TestMultiplication tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions recursion/regular_expressions_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package recursion

import (
"testing"
)
import "testing"

/*
TestRegularExpressions tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions recursion/reverse_number_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package recursion

import (
"testing"
)
import "testing"

/*
TestReverseDigits tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions stack/basic_calculator_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package stack

import (
"testing"
)
import "testing"

/*
TestBasicCalculator tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions stack/longest_valid_parentheses_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package stack

import (
"testing"
)
import "testing"

/*
TestLongestValidParentheses tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions strings/longest_dictionary_word_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package strings

import (
"testing"
)
import "testing"

/*
TestLongestDictionaryWordContainingKey tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions strings/longest_substring_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package strings

import (
"testing"
)
import "testing"

/*
TestLongestSubstrings tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions strings/look_and_tell_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package strings

import (
"testing"
)
import "testing"

/*
TestFindDuplicate tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions strings/number_in_english_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package strings

import (
"testing"
)
import "testing"

/*
TestReadNumberInEnglish tests solution(s) with the following signature and problem description:
Expand Down
4 changes: 1 addition & 3 deletions strings/reverse_vowels_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package strings

import (
"testing"
)
import "testing"

/*
TestReverseVowels tests solution(s) with the following signature and problem description:
Expand Down

0 comments on commit cb47c27

Please sign in to comment.