邓心一 6 سال پیش
والد
کامیت
e78b73f9c4
2فایلهای تغییر یافته به همراه19 افزوده شده و 2 حذف شده
  1. 17 0
      medium/497.random-point-in-non-overlapping-rectangles.go
  2. 2 2
      medium/81.go

+ 17 - 0
medium/497.random-point-in-non-overlapping-rectangles.go

@@ -0,0 +1,17 @@
+type Solution struct {
+	
+}
+
+func Constructor(rects [][]int) Solution {
+
+}
+
+func (this *Solution) Pick() []int {
+
+}
+
+/**
+ * Your Solution object will be instantiated and called as such:
+ * obj := Constructor(rects);
+ * param_1 := obj.Pick();
+ */

+ 2 - 2
medium/81.go

@@ -4,7 +4,7 @@ import (
 	"fmt"
 )
 
-/* func search(nums []int, target int) bool {
+func search(nums []int, target int) bool {
 	beg, end := 0, len(nums)-1
 	// for empty array
 	if end == -1 {
@@ -38,7 +38,7 @@ import (
 		return binarySearch(nums, target, 0, beg)
 	}
 	return binarySearch(nums, target, beg+1, len(nums)-1)
-} */
+}
 
 func binarySearch(nums []int, target, beg, end int) bool {
 	for beg <= end {