Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RezaSi/go-interview-practice
/ functions
Functions
12,886 in github.com/RezaSi/go-interview-practice
⨍
Functions
12,886
◇
Types & classes
2,640
↓ 2 callers
Function
BFS
BFS performs breadth-first search starting from the given node
challenge-4/submissions/Ali-Fartoot/solution-template.go:15
↓ 2 callers
Function
BFSQuery
get the path of all nodes connected to the root
challenge-4/submissions/mick4711/solution-template.go:75
↓ 2 callers
Method
BatchUpdateInventory
BatchUpdateInventory updates the quantity of multiple products in a single transaction
challenge-13/solution-template.go:74
↓ 2 callers
Function
BellmanFord
BellmanFord implements the Bellman-Ford algorithm for weighted graphs that may contain negative weight edges to find shortest paths from a source vert
challenge-25/solution-template.go:100
↓ 2 callers
Function
BinarySearch
BinarySearch performs a standard binary search to find the target in the sorted array. Returns the index of the target if found, or -1 if not found.
challenge-21/submissions/JackDalberg/solution-template.go:28
↓ 2 callers
Function
BinarySearchRecursive
BinarySearchRecursive performs binary search using recursion. Returns the index of the target if found, or -1 if not found.
challenge-21/submissions/Mxn-ptr/solution-template.go:34
↓ 2 callers
Function
BreadthFirstSearch
BreadthFirstSearch implements BFS for unweighted graphs to find shortest paths from a source vertex to all other vertices. Returns: - distances: slice
challenge-25/solution-template.go:79
↓ 2 callers
Method
Broadcast
Broadcast sends a message to all connected clients
challenge-8/solution-template.go:54
↓ 2 callers
Method
Burst
()
challenge-29/submissions/nzamulov/solution-template.go:18
↓ 2 callers
Method
Call
(ctx context.Context, operation func() (interface{}, error))
challenge-20/submissions/odelbos/solution-template.go:54
↓ 2 callers
Method
Call
(ctx context.Context, operation func() (interface{}, error))
challenge-20/submissions/hudazaan/solution-template.go:55
↓ 2 callers
Method
Call
(ctx context.Context, operation func() (interface{}, error))
challenge-20/submissions/hvijaycse/solution-template.go:55
↓ 2 callers
Method
Call
(ctx context.Context, operation func() (any, error))
challenge-20/submissions/Kosench/solution-template.go:55
↓ 2 callers
Method
Call
(ctx context.Context, operation func() (interface{}, error))
challenge-20/submissions/PopovMarko/solution-template.go:57
↓ 2 callers
Method
Call
(ctx context.Context, operation func() (interface{}, error))
challenge-20/submissions/manik23/solution-template.go:59
↓ 2 callers
Method
Call
defines the operations for a circuit breaker
challenge-20/submissions/imankhodadi/solution-template.go:49
↓ 2 callers
Method
Call
(ctx context.Context, operation func() (interface{}, error))
challenge-20/submissions/amrshaban2005/solution-template.go:55
↓ 2 callers
Method
Call
(ctx context.Context, operation func() (interface{}, error))
challenge-20/submissions/YounesBouchbouk/solution-template.go:55
↓ 2 callers
Method
Call
(ctx context.Context, operation func() (interface{}, error))
challenge-20/submissions/mvsouza/solution-template.go:65
↓ 2 callers
Method
Call
(ctx context.Context, operation func() (any, error))
challenge-20/submissions/mick4711/solution-template.go:55
↓ 2 callers
Method
Call
(ctx context.Context, operation func() (interface{}, error))
challenge-20/submissions/PolinaSvet/solution-template.go:55
↓ 2 callers
Method
Call
(ctx context.Context, operation func() (interface{}, error))
challenge-20/submissions/y1hao/solution-template.go:55
↓ 2 callers
Method
Call
(ctx context.Context, operation func() (interface{}, error))
challenge-20/submissions/muhammedkucukaslan/solution-template.go:55
↓ 2 callers
Method
Call
(ctx context.Context, operation func() (interface{}, error))
challenge-20/submissions/PureTeamLead/solution-template.go:55
↓ 2 callers
Method
Call
(ctx context.Context, operation func() (interface{}, error))
challenge-20/submissions/Onkar-25/solution-template.go:55
↓ 2 callers
Method
Call
(ctx context.Context, operation func() (interface{}, error))
challenge-20/submissions/JackDalberg/solution-template.go:55
↓ 2 callers
Method
Capacity
()
challenge-28/solution-template.go:67
↓ 2 callers
Method
Capacity
()
challenge-28/solution-template.go:117
↓ 2 callers
Method
Capacity
()
challenge-28/solution-template.go:167
↓ 2 callers
Function
CategoryExists
CategoryExists reports whether a category with the given name exists.
packages/cobra/challenge-3-subcommands-persistence/submissions/PopovMarko/solution.go:482
↓ 2 callers
Function
CelsiusToFahrenheit
(celsius float64)
challenge-18/submissions/imankhodadi/solution-template.go:19
↓ 2 callers
Method
CheckBalanceAvailable
CheckBalanceAvailable checks if the account has enough balance for a withdrawal or transfer.
challenge-7/submissions/mvsouza/solution-template.go:101
↓ 2 callers
Method
CheckInventory
CheckInventory checks if a product is available in the requested quantity
challenge-14/submissions/odelbos/solution-template.go:117
↓ 2 callers
Method
CheckInventory
CheckInventory checks if a product is available in the requested quantity
challenge-14/submissions/Kosench/solution-template.go:119
↓ 2 callers
Method
CheckInventory
CheckInventory checks if a product is available in the requested quantity
challenge-14/submissions/PopovMarko/solution-template.go:119
↓ 2 callers
Method
CheckInventory
CheckInventory checks if a product is available in the requested quantity
challenge-14/submissions/shivamarora1/solution-template.go:119
↓ 2 callers
Method
CheckInventory
CheckInventory checks if a product is available in the requested quantity
challenge-14/submissions/mvsouza/solution-template.go:125
↓ 2 callers
Method
CheckInventory
CheckInventory checks if a product is available in the requested quantity
challenge-14/submissions/mick4711/solution-template.go:118
↓ 2 callers
Method
CheckInventory
CheckInventory checks if a product is available in the requested quantity
challenge-14/submissions/PolinaSvet/solution-template.go:120
↓ 2 callers
Method
CheckInventory
CheckInventory checks if a product is available in the requested quantity
challenge-14/submissions/y1hao/solution-template.go:118
↓ 2 callers
Method
CheckInventory
CheckInventory checks if a product is available in the requested quantity
challenge-14/submissions/ashwinipatankar/solution-template.go:120
↓ 2 callers
Method
CheckInventory
CheckInventory checks if a product is available in the requested quantity
challenge-14/submissions/Cpoing/solution-template.go:120
↓ 2 callers
Method
CheckInventory
CheckInventory checks if a product is available in the requested quantity
challenge-14/submissions/JackDalberg/solution-template.go:119
↓ 2 callers
Method
CheckInventory
CheckInventory checks if a product is available in the requested quantity
challenge-14/submissions/kuzminprog/solution-template.go:118
↓ 2 callers
Method
CheckInventoryRPC
(ctx context.Context, req *CheckInventoryRequest)
challenge-14/submissions/mvsouza/solution-template.go:167
↓ 2 callers
Function
CoinCombination
CoinCombination returns a map with the specific combination of coins that gives the minimum number. The keys are coin denominations and values are the
challenge-22/submissions/manik23/solution-template.go:54
↓ 2 callers
Function
CoinCombination
CoinCombination returns a map with the specific combination of coins that gives the minimum number. The keys are coin denominations and values are the
challenge-22/submissions/sutthiphong2005/solution-template.go:60
↓ 2 callers
Function
CoinCombination
CoinCombination returns a map with the specific combination of coins that gives the minimum number. The keys are coin denominations and values are the
challenge-22/submissions/mvsouza/solution-template.go:50
↓ 2 callers
Function
CoinCombination
CoinCombination returns a map with the specific combination of coins that gives the minimum number. The keys are coin denominations and values are the
challenge-22/submissions/y1hao/solution-template.go:51
↓ 2 callers
Function
CoinCombination
CoinCombination returns a map with the specific combination of coins that gives the minimum number. The keys are coin denominations and values are the
challenge-22/submissions/KhaledMosaad/solution-template.go:54
↓ 2 callers
Function
CoinCombination
CoinCombination returns a map with the specific combination of coins that gives the minimum number. The keys are coin denominations and values are the
challenge-22/submissions/onomica/solution-template.go:51
↓ 2 callers
Function
CoinCombination
CoinCombination returns a map with the specific combination of coins that gives the minimum number. The keys are coin denominations and values are the
challenge-22/submissions/nzamulov/solution-template.go:50
↓ 2 callers
Function
ConcurrentBFSQueries
ConcurrentBFSQueries processes BFS queries concurrently using worker goroutines Each worker processes queries from a shared job queue
challenge-4/submissions/Ali-Fartoot/solution-template.go:45
↓ 2 callers
Method
Contains
Contains returns true if the set contains the given element
challenge-27/submissions/kiramux/solution-template.go:175
↓ 2 callers
Method
Contains
(element T)
challenge-27/submissions/imankhodadi/solution-template.go:126
↓ 2 callers
Method
Contains
Contains returns true if the set contains the given element
challenge-27/submissions/mvsouza/solution-template.go:165
↓ 2 callers
Method
Contains
(value T)
challenge-27/submissions/Ali-Fartoot/solution-template.go:127
↓ 2 callers
Method
Contains
Contains returns true if the set contains the given element
challenge-27/submissions/PolinaSvet/solution-template.go:225
↓ 2 callers
Method
Contains
Contains returns true if the set contains the given element
challenge-27/submissions/cep-ter/solution-template.go:173
↓ 2 callers
Method
Contains
Contains returns true if the set contains the given element
challenge-27/submissions/xyersh/solution-template.go:209
↓ 2 callers
Method
Contains
Contains returns true if the set contains the given element
challenge-27/submissions/Johrespi/solution-template.go:197
↓ 2 callers
Method
Contains
Contains returns true if the set contains the given element
challenge-27/submissions/ashwinipatankar/solution-template.go:225
↓ 2 callers
Method
Contains
Contains returns true if the set contains the given element
challenge-27/submissions/maket12/solution-template.go:194
↓ 2 callers
Method
Contains
Contains returns true if the set contains the given element
challenge-27/submissions/nzamulov/solution-template.go:163
↓ 2 callers
Method
Contains
Contains returns true if the set contains the given element
challenge-27/submissions/Gandook/solution-template.go:180
↓ 2 callers
Method
Contains
Contains returns true if the set contains the given element
challenge-27/submissions/JackDalberg/solution-template.go:171
↓ 2 callers
Function
ContentTypeMiddleware
ContentTypeMiddleware validates content type for POST/PUT requests (Done)
packages/gin/challenge-2-middleware/submissions/BrianHuang813/solution.go:222
↓ 2 callers
Function
ContentTypeMiddleware
ContentTypeMiddleware validates content type for POST/PUT requests
packages/gin/challenge-2-middleware/submissions/father-frog/solution.go:353
↓ 2 callers
Method
CreateCancellableContext
Create a cancellable context from a parent context
challenge-30/solution-template.go:12
↓ 2 callers
Method
CreateLimiter
(config RateLimiterConfig)
challenge-29/solution-template.go:263
↓ 2 callers
Method
CreateLimiter
(config RateLimiterConfig)
challenge-29/submissions/imankhodadi/solution-template.go:604
↓ 2 callers
Method
CreateProduct
(product *Product)
challenge-13/submissions/imankhodadi/solution-template.go:44
↓ 2 callers
Method
CreateProduct
CreateProduct adds a new product to the database
challenge-13/submissions/PolinaSvet/solution-template.go:66
↓ 2 callers
Method
CreateTimeoutContext
Create a context with timeout
challenge-30/solution-template.go:15
↓ 2 callers
Method
Deposit
Deposit adds the specified amount to the account balance. It returns an error if the amount is invalid or exceeds the transaction limit.
challenge-7/solution-template.go:74
↓ 2 callers
Method
Deposit
Deposit adds the specified amount to the account balance. It returns an error if the amount is invalid or exceeds the transaction limit.
challenge-7/submissions/hvijaycse/solution-template.go:91
↓ 2 callers
Method
Deposit
Deposit adds the specified amount to the account balance. It returns an error if the amount is invalid or exceeds the transaction limit.
challenge-7/submissions/manik23/solution-template.go:103
↓ 2 callers
Method
Deposit
Deposit adds the specified amount to the account balance. It returns an error if the amount is invalid or exceeds the transaction limit.
challenge-7/submissions/nosrio/solution-template.go:102
↓ 2 callers
Method
Deposit
Deposit adds the specified amount to the account balance. It returns an error if the amount is invalid or exceeds the transaction limit.
challenge-7/submissions/Mxn-ptr/solution-template.go:99
↓ 2 callers
Method
Deposit
Deposit adds the specified amount to the account balance. It returns an error if the amount is invalid or exceeds the transaction limit.
challenge-7/submissions/korranat9/solution-template.go:102
↓ 2 callers
Method
Deposit
Deposit adds the specified amount to the account balance. It returns an error if the amount is invalid or exceeds the transaction limit.
challenge-7/submissions/ne0phyte/solution-template.go:89
↓ 2 callers
Method
Deposit
Deposit adds the specified amount to the account balance. It returns an error if the amount is invalid or exceeds the transaction limit.
challenge-7/submissions/Gandook/solution-template.go:86
↓ 2 callers
Method
Deposit
Deposit adds the specified amount to the account balance. It returns an error if the amount is invalid or exceeds the transaction limit.
challenge-7/submissions/JackDalberg/solution-template.go:99
↓ 2 callers
Function
Dijkstra
Dijkstra implements Dijkstra's algorithm for weighted graphs with non-negative weights to find shortest paths from a source vertex to all other vertic
challenge-25/solution-template.go:89
↓ 2 callers
Method
DoRefreshToken
RefreshToken refreshes the access token using the refresh token Called automatically when the access token expires
challenge-15/submissions/Kosench/solution-template.go:865
↓ 2 callers
Method
DoRefreshToken
RefreshToken refreshes the access token using the refresh token
challenge-15/submissions/PolinaSvet/solution-template.go:894
↓ 2 callers
Method
Elements
Elements returns a slice containing all elements in the set
challenge-27/solution-template.go:164
↓ 2 callers
Method
Error
Error returns a string representation of the PipelineError
challenge-12/submissions/PopovMarko/solution-template.go:91
↓ 2 callers
Method
Error
Error returns a string representation of the PipelineError
challenge-12/submissions/longbui98/solution-template.go:77
↓ 2 callers
Method
Error
Error returns a string representation of the PipelineError
challenge-12/submissions/nzamulov/solution-template.go:72
↓ 2 callers
Function
ErrorHandlerMiddleware
ErrorHandlerMiddleware handles panics and errors
packages/gin/challenge-2-middleware/solution-template.go:139
↓ 2 callers
Method
Expired
()
challenge-15/submissions/mvsouza/solution-template.go:470
↓ 2 callers
Function
Filter
5. Generic Utility Functions Filter returns a new slice containing only the elements for which the predicate returns true
challenge-27/solution-template.go:192
↓ 2 callers
Function
FilterEven
FilterEven returns a new slice containing only the even numbers from the original slice.
challenge-19/solution-template.go:50
↓ 2 callers
Function
FindMax
FindMax returns the maximum value in a slice of integers. If the slice is empty, it returns 0.
challenge-19/solution-template.go:30
↓ 2 callers
Method
GetBalance
()
challenge-7/submissions/imankhodadi/solution-template.go:18
↓ 2 callers
Method
GetConnection
GetConnection возвращает соединение клиента
challenge-8/submissions/PolinaSvet/solution-template.go:52
↓ 2 callers
Method
GetGitUsername
GetGitUsername returns the username extracted from git configuration
web-ui/internal/handlers/api.go:410
↓ 2 callers
Function
GetLISElements
GetLISElements returns one possible longest increasing subsequence (not just the length, but the actual elements).
challenge-24/submissions/mvsouza/solution-template.go:77
↓ 2 callers
Function
GetLISElements
GetLISElements returns one possible longest increasing subsequence (not just the length, but the actual elements).
challenge-24/submissions/nzamulov/solution-template.go:69
← previous
next →
801–900 of 12,886, ranked by callers