This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Suite: | |
def __init__(self, failing: tuple[int, int]): | |
self.failing = set(failing) | |
def testSuite(self, arr: list[int]): | |
return len(set(arr) & self.failing) == 2 | |
def solve(self, n: int): | |
arr = list(range(n)) | |
result = self.dnc(arr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
# Dataset used https://github.com/dwyl/english-words/blob/master/words_dictionary.json | |
with open(r'path/to/words_dictionary.json') as f: | |
words = json.load(f) | |
longest_len = 0 | |
longest_word = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Time | Side | Instrument | OptionType | |
---|---|---|---|---|
09:18:39.184.112.574 | Buy | HDFCLIFE20DEC660PE | PE | |
09:40:45.724.619.778 | Sell | BEL20DEC110PE | PE | |
09:40:45.725.883.078 | Sell | BEL20DEC112.5PE | PE | |
10:08:14.993.269.799 | Buy | BANKBARODA20DEC63CE | CE | |
10:09:11.452.614.025 | Buy | ITC20DEC200CE | CE | |
10:19:25.134.812.941 | Buy | FEDERALBNK20DEC66CE | CE | |
10:26:40.232.194.477 | Buy | MANAPPURAM20DEC175PE | PE | |
10:27:13.855.205.646 | Buy | TATACONSUM20DEC540PE | PE | |
10:32:43.153.077.655 | Buy | APOLLOHOSP20DEC2400PE | PE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import discord as a;b,c=a.Client(),int | |
@b.event | |
async def on_message(a):e=a.embeds;return(await a.channel.send(f"{e[0].title} Spawned | <@&role_id>"),None)[e and e[0].image and a.author.id==673362753489993749 and c(e[0].title[-1])>3] | |
b.run('Token') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import contextlib | |
import heapq | |
import types | |
__all__ = ('PrioritySemaphore') | |
class PrioritySemaphore(asyncio.Semaphore): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import logging | |
import time | |
from contextlib import suppress | |
from typing import Union | |
import discord | |
""" |