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
↓ 1 callers
Method
Validate
Validate validates JSON data
challenge-12/solution-template.go:146
↓ 1 callers
Method
Validate
Validate validates JSON data
challenge-12/submissions/PolinaSvet/solution-template.go:128
↓ 1 callers
Method
Validate
Validate validates data against a schema
challenge-12/submissions/PolinaSvet/solution-template.go:171
↓ 1 callers
Function
ValidateCelsius
(celsius float64)
challenge-18/submissions/imankhodadi/solution-template.go:33
↓ 1 callers
Function
ValidateFahrenheit
(fahrenheit float64)
challenge-18/submissions/imankhodadi/solution-template.go:40
↓ 1 callers
Function
ValidatePhone
ValidatePhone checks if a string is a valid phone number in format (XXX) XXX-XXXX
challenge-26/solution-template.go:14
↓ 1 callers
Method
ValidateUser
ValidateUser checks if a user exists and is active
challenge-14/submissions/nzamulov/solution-template.go:91
↓ 1 callers
Function
ValidationMiddleware
ValidationMiddleware validates configuration before command execution
packages/cobra/challenge-4-advanced-features/solution-template.go:338
↓ 1 callers
Function
VerifyCodeChallenge
VerifyCodeChallenge verifies a PKCE code challenge
challenge-15/submissions/odelbos/solution-template.go:445
↓ 1 callers
Function
VerifyCodeChallenge
VerifyCodeChallenge verifies a PKCE code challenge
challenge-15/submissions/Kosench/solution-template.go:724
↓ 1 callers
Function
VerifyCodeChallenge
VerifyCodeChallenge verifies a PKCE code challenge
challenge-15/submissions/PopovMarko/solution-template.go:676
↓ 1 callers
Function
VerifyCodeChallenge
VerifyCodeChallenge verifies a PKCE code challenge
challenge-15/submissions/imankhodadi/solution-template.go:470
↓ 1 callers
Function
VerifyCodeChallenge
VerifyCodeChallenge verifies a PKCE code challenge
challenge-15/submissions/mvsouza/solution-template.go:521
↓ 1 callers
Function
VerifyCodeChallenge
VerifyCodeChallenge verifies a PKCE code challenge
challenge-15/submissions/PolinaSvet/solution-template.go:768
↓ 1 callers
Function
VerifyCodeChallenge
VerifyCodeChallenge verifies a PKCE code challenge
challenge-15/submissions/nzamulov/solution-template.go:443
↓ 1 callers
Function
VerifyCodeChallenge
VerifyCodeChallenge verifies a PKCE code challenge
challenge-15/submissions/Cpoing/solution-template.go:457
↓ 1 callers
Method
Wait
(ctx context.Context)
challenge-11/submissions/nzamulov/solution-template.go:71
↓ 1 callers
Method
WaitForCompletion
WaitForCompletion waits for a duration or until context is cancelled
challenge-30/submissions/mvsouza/solution-template.go:80
↓ 1 callers
Method
WaitN
(ctx context.Context, n int)
challenge-29/submissions/odelbos/solution-template.go:89
↓ 1 callers
Method
WaitN
(ctx context.Context, n int)
challenge-29/submissions/odelbos/solution-template.go:207
↓ 1 callers
Method
WaitN
(ctx context.Context, n int)
challenge-29/submissions/odelbos/solution-template.go:309
↓ 1 callers
Method
WaitN
(ctx context.Context, n int)
challenge-29/submissions/imankhodadi/solution-template.go:145
↓ 1 callers
Method
WaitN
(ctx context.Context, n int)
challenge-29/submissions/imankhodadi/solution-template.go:350
↓ 1 callers
Method
WaitN
(ctx context.Context, n int)
challenge-29/submissions/imankhodadi/solution-template.go:522
↓ 1 callers
Method
WaitN
(ctx context.Context, n int)
challenge-29/submissions/mvsouza/solution-template.go:100
↓ 1 callers
Method
WaitN
(ctx context.Context, n int)
challenge-29/submissions/PolinaSvet/solution-template.go:162
↓ 1 callers
Method
WaitN
(ctx context.Context, n int)
challenge-29/submissions/PolinaSvet/solution-template.go:383
↓ 1 callers
Method
WaitN
(ctx context.Context, n int)
challenge-29/submissions/PolinaSvet/solution-template.go:521
↓ 1 callers
Method
Withdraw
Withdraw removes the specified amount from the account balance. It returns an error if the amount is invalid, exceeds the transaction limit, or would
challenge-7/submissions/jrbarbati/solution-template.go:117
↓ 1 callers
Method
Withdraw
Withdraw removes the specified amount from the account balance. It returns an error if the amount is invalid, exceeds the transaction limit, or would
challenge-7/submissions/odelbos/solution-template.go:120
↓ 1 callers
Method
Withdraw
Withdraw removes the specified amount from the account balance. It returns an error if the amount is invalid, exceeds the transaction limit, or would
challenge-7/submissions/hvijaycse/solution-template.go:109
↓ 1 callers
Method
Withdraw
Withdraw removes the specified amount from the account balance. It returns an error if the amount is invalid, exceeds the transaction limit, or would
challenge-7/submissions/shahzodshafizod/solution-template.go:100
↓ 1 callers
Method
Withdraw
Withdraw removes the specified amount from the account balance. It returns an error if the amount is invalid, exceeds the transaction limit, or would
challenge-7/submissions/manik23/solution-template.go:123
↓ 1 callers
Method
Withdraw
(amount float64)
challenge-7/submissions/imankhodadi/solution-template.go:92
↓ 1 callers
Method
Withdraw
Withdraw removes the specified amount from the account balance. It returns an error if the amount is invalid, exceeds the transaction limit, or would
challenge-7/submissions/bmamha/solution-template.go:135
↓ 1 callers
Method
Withdraw
Withdraw removes the specified amount from the account balance. It returns an error if the amount is invalid, exceeds the transaction limit, or would
challenge-7/submissions/nosrio/solution-template.go:120
↓ 1 callers
Method
Withdraw
Withdraw removes the specified amount from the account balance. It returns an error if the amount is invalid, exceeds the transaction limit, or would
challenge-7/submissions/Mxn-ptr/solution-template.go:117
↓ 1 callers
Method
Withdraw
Withdraw removes the specified amount from the account balance. It returns an error if the amount is invalid, exceeds the transaction limit, or would
challenge-7/submissions/korranat9/solution-template.go:119
↓ 1 callers
Method
Withdraw
Withdraw removes the specified amount from the account balance. It returns an error if the amount is invalid, exceeds the transaction limit, or would
challenge-7/submissions/mick4711/solution-template.go:151
↓ 1 callers
Method
Withdraw
Withdraw removes the specified amount from the account balance. It returns an error if the amount is invalid, exceeds the transaction limit, or would
challenge-7/submissions/ne0phyte/solution-template.go:104
↓ 1 callers
Method
Withdraw
Withdraw removes the specified amount from the account balance. It returns an error if the amount is invalid, exceeds the transaction limit, or would
challenge-7/submissions/y1hao/solution-template.go:99
↓ 1 callers
Method
Withdraw
Withdraw removes the specified amount from the account balance. It returns an error if the amount is invalid, exceeds the transaction limit, or would
challenge-7/submissions/AkifhanIlgaz/solution-template.go:110
↓ 1 callers
Method
Withdraw
Withdraw removes the specified amount from the account balance. It returns an error if the amount is invalid, exceeds the transaction limit, or would
challenge-7/submissions/brenoamin/solution-template.go:123
↓ 1 callers
Method
Withdraw
Withdraw removes the specified amount from the account balance. It returns an error if the amount is invalid, exceeds the transaction limit, or would
challenge-7/submissions/RezaSi/solution-template.go:151
↓ 1 callers
Method
Withdraw
(amount float64)
challenge-7/submissions/abhishek15032000/solution-template.go:161
↓ 1 callers
Method
Withdraw
Withdraw removes the specified amount from the account balance. It returns an error if the amount is invalid, exceeds the transaction limit, or would
challenge-7/submissions/maket12/solution-template.go:133
↓ 1 callers
Method
Withdraw
Withdraw removes the specified amount from the account balance. It returns an error if the amount is invalid, exceeds the transaction limit, or would
challenge-7/submissions/Gandook/solution-template.go:103
↓ 1 callers
Method
Withdraw
Withdraw removes the specified amount from the account balance. It returns an error if the amount is invalid, exceeds the transaction limit, or would
challenge-7/submissions/JackDalberg/solution-template.go:117
↓ 1 callers
Function
Worker
(ch chan int,wg *sync.WaitGroup,output map[int][]int, graph map[int][]int,m *sync.Mutex)
challenge-4/submissions/himanshum9/solution-template.go:35
↓ 1 callers
Method
addControls
()
web-ui/static/js/main.js:53
↓ 1 callers
Method
addEventListeners
()
web-ui/static/js/main.js:95
↓ 1 callers
Method
addRequests
(timestamp time.Time, n int)
challenge-29/submissions/PolinaSvet/solution-template.go:330
↓ 1 callers
Function
adminMiddleware
adminMiddleware checks for admin role
packages/fiber/challenge-4-authentication/solution-template.go:153
↓ 1 callers
Function
adminMiddleware
()
packages/fiber/challenge-4-authentication/submissions/odelbos/solution.go:189
↓ 1 callers
Function
allProductsExist
(ids []string, tx *sql.Tx)
challenge-13/submissions/DavidCao22/solution-template.go:291
↓ 1 callers
Function
animateStats
()
docs/assets/script.js:38
↓ 1 callers
Method
applyHighlight
(highlightData)
web-ui/static/js/main.js:238
↓ 1 callers
Method
applyHighlights
()
web-ui/static/js/main.js:232
↓ 1 callers
Function
authErrorRedirectResponse
(w http.ResponseWriter, r *http.Request, err string, dto AuthRequestDTO)
challenge-15/submissions/PopovMarko/solution-template.go:268
↓ 1 callers
Function
authRedirectResponse
(w http.ResponseWriter, r *http.Request, code *AuthorizationCode, state string)
challenge-15/submissions/PopovMarko/solution-template.go:275
↓ 1 callers
Function
bfs
(grapfh map[int][]int, start int)
challenge-4/submissions/arslanoktay/solution-template.go:61
↓ 1 callers
Function
bfs
(graph map[int][]int, start int)
challenge-4/submissions/odelbos/solution-template.go:13
↓ 1 callers
Function
bfs
standard BFS algo.
challenge-4/submissions/hvijaycse/solution-template.go:11
↓ 1 callers
Function
bfs
(graph map[int][]int, start int)
challenge-4/submissions/shahzodshafizod/solution-template.go:59
↓ 1 callers
Function
bfs
bfs 执行广度优先搜索,返回遍历顺序
challenge-4/submissions/JarhsonNing/solution-template.go:53
↓ 1 callers
Function
bfs
(graph map[int][]int, root int)
challenge-4/submissions/nosrio/solution-template.go:18
↓ 1 callers
Function
bfs
(graph map[int][]int, s int)
challenge-4/submissions/jersonzc/solution-template.go:7
↓ 1 callers
Function
bfs
bfs start a bfs at node `u`, using slice as a FIFO queue graph is an adjacency matrix
challenge-4/submissions/anhvu2001ct/solution-template.go:48
↓ 1 callers
Function
bfs
(graph map[int][]int, start int)
challenge-4/submissions/mvsouza/solution-template.go:48
↓ 1 callers
Function
bfs
ConcurrentBFSQueries concurrently processes BFS queries on the provided graph. - graph: adjacency list, e.g., graph[u] = []int{v1, v2, ...} - queries:
challenge-4/submissions/korranat9/solution-template.go:12
↓ 1 callers
Function
bfs
(graph map[int][]int, start int)
challenge-4/submissions/VFarsiyants/solution-template.go:40
↓ 1 callers
Function
bfs
bfs performs a Breadth-First Search on a graph from a root node. This version is optimized to be more efficient.
challenge-4/submissions/cep-ter/solution-template.go:63
↓ 1 callers
Function
bfs
(graph map[int][]int, start int)
challenge-4/submissions/inok94/solution-template.go:36
↓ 1 callers
Function
bfs
单个 BFS 实现
challenge-4/submissions/HeimaoLST/solution-template.go:47
↓ 1 callers
Function
bfs
(graph map[int][]int, start int)
challenge-4/submissions/macborowy/solution-template.go:43
↓ 1 callers
Function
bfs
bfs performs a standard BFS traversal from a start node
challenge-4/submissions/ADEMOLA200/solution-template.go:9
↓ 1 callers
Function
bfs
(graph map[int][]int, start int)
challenge-4/submissions/t4e1/solution-template.go:51
↓ 1 callers
Function
bfs
(graph map[int][]int, start int)
challenge-4/submissions/Cpoing/solution-template.go:18
↓ 1 callers
Function
bfs
(graph map[int][]int, start int)
challenge-4/submissions/zylbeyondlimits/solution-template.go:53
↓ 1 callers
Function
bfsOrder
bfsOrder makes queue and visited datastructure returns result for one query
challenge-4/submissions/PopovMarko/solution-template.go:66
↓ 1 callers
Function
bfsReference
(graph map[int][]int, start int)
challenge-4/solution-template_test.go:10
↓ 1 callers
Function
bfsWorker
(graph map[int][]int, jobs <-chan int, results chan<- BFSResult, wg *sync.WaitGroup)
challenge-4/submissions/shapoclack/solution-template.go:62
↓ 1 callers
Method
bubbleDown
(ind int)
challenge-25/submissions/Gandook/solution-template.go:14
↓ 1 callers
Method
buildHintPrompt
buildHintPrompt creates the prompt for generating hints
web-ui/internal/services/ai.go:417
↓ 1 callers
Function
buildLIS
(LIS, a, p *[]int, index int)
challenge-24/submissions/Gandook/solution-template.go:102
↓ 1 callers
Method
buildQuestionPrompt
buildQuestionPrompt creates the prompt for generating interview questions
web-ui/internal/services/ai.go:402
↓ 1 callers
Function
buildStarGraph
(center, branches int)
challenge-4/solution-template_test.go:61
↓ 1 callers
Function
calcHash
(rHash *[]int64, start, length int)
challenge-23/submissions/Gandook/solution-template.go:151
↓ 1 callers
Method
calculateMainLeaderboard
calculateMainLeaderboard calculates the main leaderboard data
web-ui/internal/handlers/api.go:716
↓ 1 callers
Method
calculateMainScoreboardRank
calculateMainScoreboardRank calculates the user's rank based on completed challenges
web-ui/internal/handlers/api.go:479
↓ 1 callers
Method
calculateScore
calculateScore calculates the score for a user's submission for a challenge
web-ui/internal/services/user.go:130
↓ 1 callers
Method
calculateWaitTime
(n int)
challenge-29/submissions/PolinaSvet/solution-template.go:269
↓ 1 callers
Method
callClaudeWithOpts
(prompt string, expectJSON bool)
web-ui/internal/services/ai.go:531
↓ 1 callers
Method
callClosed
(ctx context.Context, operation func() (any, error))
challenge-20/submissions/imankhodadi/solution-template.go:193
↓ 1 callers
Method
callClosed
(operation func() (interface{}, error))
challenge-20/submissions/PolinaSvet/solution-template.go:160
↓ 1 callers
Method
callGeminiWithOpts
callGemini makes a request to the Gemini API
web-ui/internal/services/ai.go:456
↓ 1 callers
Method
callHalfOpen
(ctx context.Context, operation func() (any, error))
challenge-20/submissions/imankhodadi/solution-template.go:142
↓ 1 callers
Method
callHalfOpen
(operation func() (interface{}, error))
challenge-20/submissions/PolinaSvet/solution-template.go:181
↓ 1 callers
Method
callOpenAIWithOpts
(prompt string, expectJSON bool)
web-ui/internal/services/ai.go:598
↓ 1 callers
Method
canExecute
canExecute determines if a request can be executed in the current state
challenge-20/submissions/odelbos/solution-template.go:178
← previous
next →
4,401–4,500 of 12,886, ranked by callers