Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def twoSum(self, nums: List[int], target: int) -> List[int]:

if v in answer:
return [answer[v], k]
else:
else:
answer[target - v] = k

return []

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ def isPalindrome(self, s: str) -> bool:
# Remove non-alphanumeric characters
s = re.sub(pattern=r'[^a-zA-Z0-9]', repl='', string=s)

# Determine if s is palindrome or not
# Determine if it is palindrome or not

len_s = len(s)

for i in range(len_s//2):

if s[i] != s[len_s - 1 - i]:
return False

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from typing import List, Union, Collection, Mapping, Optional, Dict


class Table:

def __init__(self, name:str, columns: int, rows: Dict, row_count: int = 0):
Expand Down Expand Up @@ -98,8 +99,6 @@ def exp(self, name: str) -> List[str]:
result.append(f"{row_id},{row_str}")

return result





Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, Union, Collection, Mapping, Optional
from typing import List, Union, Collection, Mapping, Optional, Dict
from abc import ABC, abstractmethod
import math

Expand All @@ -8,7 +8,5 @@ def minimumTime(self, jobs: List[int], workers: List[int]) -> int:
jobs.sort()
workers.sort()

return max([math.ceil(n/d) for n,d in zip(jobs, workers)])



return max([math.ceil(n/d) for n, d in zip(jobs, workers)])

This file was deleted.

This file was deleted.

This file was deleted.

Loading