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 'package:flutter/material.dart'; | |
import 'dart:math' as math; | |
class WordCloudData { | |
final String word; | |
final int frequency; | |
final Color? color; | |
WordCloudData({ | |
required this.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
Clean Archi Ref | |
Starter Kit | CLI | |
- Very Good Ventures Cli | |
- GeekyAnts - Flutter Starter (Kit) | |
- https://github.com/hawkkiller/sizzle_starter (Kit Setup) | |
- StMgmt |
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
1) Impact | |
I've consistently shown commitment and motivation ever since I joined the organization | |
This helps me demonstrating the significant work values. | |
I meet set deadlines and objectives most of the time. | |
I manage my time effectively by prioritising the important tasks. | |
I often go above and beyond to match targets and expectations. | |
I'm extremely proud of my contributions and what I've achieved over the past year. |
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 'package:freezed_annotation/freezed_annotation.dart'; | |
part 'test_case_2.freezed.dart'; | |
part 'test_case_2.g.dart'; | |
/* | |
@Default() should override the defaultValue or custom @JsonKey annotations | |
1) For 'name' field : JsonKey will respect @DefaultValue annotation & add key:value pair for same | |
2) For 'age' field : As JsonKey possess its own defaultValue param so it will not lookup for @DefaultValue annotation |
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 logging | |
''' | |
AIM :- LONGEST COMMON SUBSEQUENCE (DP) (MEMOIZING) | |
NOTE : matrix will hold strings as their character starting at 1... | |
1st chr of str will be access via index 1 and so on... | |
String are matched as case sensitive | |
''' |
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
from enum import Enum | |
import logging | |
### Globals------------------------------------------------------------------------------------------------------------------- | |
selectedItems = [] # current set of item that form the solution | |
Matrix_PossibleWays_RepeatOFF = [] # Each member represents the max value possible with given items | |
Matrix_PossibleWays_RepeatON = [] # Each member represents the max value possible with given items , repeatation of items is allowed | |
Matrix_MinimalItems_RepeatOFF = [] # Each member represents the (min weight, max value, min items) possible with given items |
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
from enum import Enum | |
import logging | |
### Globals------------------------------------------------------------------------------------------------------------------- | |
Matrix_PossibleWays_RepeatOFF = [] # Each member represents the total amount possible with given coins set | |
Matrix_PossibleWays_RepeatON = [] # Each member represents the number of possible ways with given coins set, repeatation of coins is allowed | |
Matrix_MinimalCoins_RepeatOFF = [] # Each member represents the minimal number of coins required with given coins set at moment | |
Matrix_MinimalCoins_RepeatON = [] # Each member represents the minimal number of coins required with given coins set at moment, repeatation of coins is allowed |
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 logging, math | |
### Globals------------------------------------------------------------------------------------------------------------------- | |
visited = [] # to keep track of visited elements/area/piece while searching path | |
found = False # denotes if path is found between target & source in parkLayout | |
totalGrassLandsCount = 0 | |
safeGrassLandsCount = 3 # Gates are already safe | |
### Functions------------------------------------------------------------------------------------------------------------------- | |
def initiatePathSearch(source, destination, optimal = True, monster = False): |
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
### Global Variables ----------------------------------------------------------------------------------------------- | |
scanUpDays = {-1:0} # track of first scanning day for each library | |
signUpDays = {} # track of signup day for each library | |
processingLibrary = -1 # track of library that have initiated signup process but not yet complete. it's always going to be one at a time | |
activeLibraries = [] # track of libraries that have started scanning process | |
completeLibraries = [] # track of libraries that have completed scanning of all unscanned books | |
bookHub = [] # global repo of scanned books | |
previousDayBooks = [] # temporary to keep track of books scanned previous day, inorder to update waiting queue by removing all books that are scanned | |
reSchedule = 0 # Use when waiting queue need to be jumble due to removal of some scanned books inorder to avoid those scanned books again to repo | |
Libraries = [] # Element Format -> [ (N,T,M), [b1, b2, ... bN] ] |
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
# M - max pizza's slices | |
# N - number of pizza | |
M,N = map(int, input().split()) | |
#Slices Count for each pizza | |
slicesCount = list(map(int, input().split())) | |
#To store memoized values for given pizza & given desired slice at moment | |
pizzeria = [] | |
# List of pizza selected to fulfill the order | |
selectedPizza = [] | |
#Memoization, (DP) |
NewerOlder