MCPcopy Create free account

hub / github.com/RezaSi/go-interview-practice / functions

Functions12,886 in github.com/RezaSi/go-interview-practice

↓ 3 callersFunctionDPLongestIncreasingSubsequence
DPLongestIncreasingSubsequence finds the length of the longest increasing subsequence using a standard dynamic programming approach with O(n²) time co
challenge-24/submissions/PolinaSvet/solution-template.go:50
↓ 3 callersMethodDelete
(key string)
challenge-28/solution-template.go:53
↓ 3 callersMethodDelete
(key string)
challenge-28/solution-template.go:204
↓ 3 callersFunctionDeleteUser
DeleteUser removes a user from the database
packages/gorm/challenge-1-crud-operations/solution-template.go:50
↓ 3 callersMethodDequeue
Dequeue removes and returns the front element from the queue Returns an error if the queue is empty
challenge-27/solution-template.go:100
↓ 3 callersMethodError
()
challenge-12/submissions/odelbos/solution-template.go:59
↓ 3 callersMethodExecuteWithContext
ExecuteWithContext executes a context-aware task that can be cancelled. The task function must respect context cancellation by checking ctx.Done(). If
challenge-30/submissions/imankhodadi/solution-template.go:69
↓ 3 callersFunctionFindInsertPosition
FindInsertPosition returns the index where the target should be inserted to maintain the sorted order of the array.
challenge-21/solution-template.go:42
↓ 3 callersFunctionFindProductByID
FindProductByID finds a product by its ID
packages/cobra/challenge-3-subcommands-persistence/solution-template.go:206
↓ 3 callersFunctionFindProductByID
(id int)
packages/cobra/challenge-3-subcommands-persistence/submissions/odelbos/solution.go:324
↓ 3 callersFunctionFindProductByID
FindProductByID returns a pointer to the product with the given ID and its index in the slice, or nil and -1 when no product matches.
packages/cobra/challenge-3-subcommands-persistence/submissions/PopovMarko/solution.go:472
↓ 3 callersFunctionFindProductByID
FindProductByID finds a product by its ID
packages/cobra/challenge-3-subcommands-persistence/submissions/PolinaSvet/solution.go:418
↓ 3 callersFunctionFindProductByID
FindProductByID finds a product by its ID
packages/cobra/challenge-3-subcommands-persistence/submissions/ashwinipatankar/solution.go:571
↓ 3 callersFunctionGenerateRandomString
GenerateRandomString generates a random string of the specified length
challenge-15/submissions/PopovMarko/solution-template.go:208
↓ 3 callersFunctionGenerateRandomString
GenerateRandomString returns a URL‑safe random string of exact length using crypto/rand.
challenge-15/submissions/nzamulov/solution-template.go:135
↓ 3 callersMethodGet
(key string)
challenge-28/solution-template.go:193
↓ 3 callersMethodGetAverageSalary
GetAverageSalary calculates the average salary of all employees.
challenge-3/solution-template.go:27
↓ 3 callersMethodGetMetrics
()
challenge-29/solution-template.go:107
↓ 3 callersFunctionGetNestedValue
GetNestedValue retrieves value from nested configuration key
packages/cobra/challenge-4-advanced-features/submissions/PolinaSvet/solution.go:584
↓ 3 callersMethodGetPackageChallenge
(packageID, challengeID string)
web-ui/internal/services/package.go:504
↓ 3 callersMethodGetPackageChallenges
(packageID string)
web-ui/internal/services/package.go:484
↓ 3 callersMethodGetPackages
()
web-ui/internal/services/package.go:58
↓ 3 callersMethodGetProduct
GetProduct retrieves a product by ID
challenge-14/submissions/shivamarora1/solution-template.go:109
↓ 3 callersMethodGetProduct
GetProduct retrieves a product by ID
challenge-14/submissions/mick4711/solution-template.go:108
↓ 3 callersMethodGetProduct
GetProduct retrieves a product by ID
challenge-14/submissions/PolinaSvet/solution-template.go:108
↓ 3 callersMethodGetProduct
GetProduct retrieves a product by ID
challenge-14/submissions/y1hao/solution-template.go:109
↓ 3 callersMethodGetProduct
GetProduct retrieves a product by ID
challenge-14/submissions/Cpoing/solution-template.go:109
↓ 3 callersMethodGetProduct
GetProduct retrieves a product by ID
challenge-14/submissions/JackDalberg/solution-template.go:109
↓ 3 callersMethodGetProduct
GetProduct retrieves a product by ID
challenge-13/submissions/mick4711/solution-template.go:75
↓ 3 callersMethodGetState
GetState returns the current state of the circuit breaker
challenge-20/submissions/Kosench/solution-template.go:140
↓ 3 callersMethodIsEmpty
IsEmpty returns true if the queue contains no elements
challenge-27/submissions/PolinaSvet/solution-template.go:191
↓ 3 callersFunctionIsPalindrome
IsPalindrome checks if a string is a palindrome. A palindrome reads the same backward as forward, ignoring case, spaces, and punctuation.
challenge-17/solution-template.go:24
↓ 3 callersMethodListUsers
ListUsers retrieves all users from the database
packages/mongodb/challenge-1-connection-crud/solution-template.go:107
↓ 3 callersFunctionMap
Map applies a function to each element in a slice and returns a new slice with the results
challenge-27/solution-template.go:198
↓ 3 callersFunctionMinCoins
(amount int, denominations []int)
challenge-22/submissions/imankhodadi/solution-template.go:8
↓ 3 callersFunctionMinCoinsDP
(amount int, denominations []int)
challenge-22/submissions/imankhodadi/solution-template.go:60
↓ 3 callersFunctionNewCache
Cache Factory Functions NewCache creates a cache with the specified policy and capacity
challenge-28/solution-template.go:233
↓ 3 callersFunctionNewContentAggregator
NewContentAggregator creates a new ContentAggregator with the specified configuration
challenge-11/solution-template.go:36
↓ 3 callersFunctionNewContextManager
NewContextManager creates a new context manager
challenge-30/submissions/jrbarbati/solution-template.go:34
↓ 3 callersFunctionNewFIFOCache
NewFIFOCache creates a new FIFO cache with the specified capacity
challenge-28/solution-template.go:137
↓ 3 callersFunctionNewFileReader
NewFileReader creates a new file reader
challenge-12/solution-template.go:125
↓ 3 callersFunctionNewMockFetcher
()
challenge-11/solution-template_test.go:21
↓ 3 callersFunctionNewMockProcessor
()
challenge-11/solution-template_test.go:62
↓ 3 callersFunctionNewProductServiceServer
NewProductServiceServer creates a new ProductServiceServer
challenge-14/submissions/czysiaczek/solution-template.go:99
↓ 3 callersFunctionNewProductServiceServer
NewProductServiceServer creates a new ProductServiceServer
challenge-14/submissions/longbui98/solution-template.go:99
↓ 3 callersFunctionNewSchemaValidator
NewSchemaValidator creates a new schema validator
challenge-12/submissions/PolinaSvet/solution-template.go:164
↓ 3 callersFunctionNewShapeCalculator
NewShapeCalculator creates a new ShapeCalculator
challenge-10/solution-template.go:110
↓ 3 callersFunctionNewThreadSafeCache
NewThreadSafeCache wraps any cache implementation to make it thread-safe
challenge-28/solution-template.go:188
↓ 3 callersFunctionOptimizedLIS
OptimizedLIS finds the length of the longest increasing subsequence using an optimized approach with O(n log n) time complexity.
challenge-24/submissions/PolinaSvet/solution-template.go:80
↓ 3 callersFunctionOptimizedSearch
OptimizedSearch is your optimized version of HighAllocationSearch It should produce identical results but perform better with fewer allocations
challenge-16/solution-template.go:117
↓ 3 callersMethodPop
Pop removes and returns the top element from the stack Returns an error if the stack is empty
challenge-27/solution-template.go:52
↓ 3 callersMethodPut
(key string, value interface{})
challenge-28/solution-template.go:199
↓ 3 callersMethodPut
(key string, value interface{})
challenge-28/submissions/imankhodadi/solution-template.go:289
↓ 3 callersMethodRead
Read reads data from a file
challenge-12/solution-template.go:131
↓ 3 callersFunctionReduce
Reduce reduces a slice to a single value by applying a function to each element
challenge-27/solution-template.go:204
↓ 3 callersFunctionRemoveDuplicates
RemoveDuplicates returns a new slice with duplicate elements removed, preserving order
challenge-27/solution-template.go:222
↓ 3 callersMethodRetrieveDocument
RetrieveDocument retrieves documents from GridFS
packages/mongodb/challenge-5-transactions-advanced/solution-template.go:196
↓ 3 callersMethodRevokeToken
RevokeToken revokes an access or refresh token
challenge-15/solution-template.go:177
↓ 3 callersFunctionRollbackMigration
RollbackMigration rolls back to a specific migration version
packages/gorm/challenge-3-migrations/solution-template.go:54
↓ 3 callersFunctionSaveConfig
()
packages/cobra/challenge-4-advanced-features/submissions/odelbos/solution.go:369
↓ 3 callersFunctionSetNestedValue
SetNestedValue sets value for nested configuration key
packages/cobra/challenge-4-advanced-features/solution-template.go:292
↓ 3 callersMethodSize
Size returns the number of elements in the stack
challenge-27/submissions/kiramux/solution-template.go:84
↓ 3 callersMethodSize
Size returns the number of elements in the stack
challenge-27/submissions/PolinaSvet/solution-template.go:86
↓ 3 callersMethodStartChangeStream
StartChangeStream starts monitoring account changes in real-time
packages/mongodb/challenge-5-transactions-advanced/solution-template.go:170
↓ 3 callersFunctionUpdateUser
UpdateUser updates an existing user's information
packages/gorm/challenge-1-crud-operations/solution-template.go:44
↓ 3 callersFunctionValidateConfiguration
ValidateConfiguration runs validation pipeline
packages/cobra/challenge-4-advanced-features/solution-template.go:300
↓ 3 callersMethodValidateToken
ValidateToken validates an access token
challenge-15/solution-template.go:165
↓ 3 callersMethodValidateUser
(ctx context.Context, userID int64)
challenge-14/solution-template.go:341
↓ 3 callersMethodWriteHeader
(code int)
packages/gin/challenge-2-middleware/submissions/22-7-co/solution.go:378
↓ 3 callersMethodaddLFUNode
addLFUNode prepends node to the head of its FreqGroup, creating the group if needed. It also registers the node in the cache map and increments the ca
challenge-28/submissions/PopovMarko/solution-template.go:374
↓ 3 callersFunctionauthMiddleware
Middleware: JWT Authentication
packages/gin/challenge-4-authentication/submissions/imankhodadi/solution.go:557
↓ 3 callersFunctionauthMiddleware
Middleware: JWT Authentication
packages/gin/challenge-4-authentication/submissions/Mxn-ptr/solution.go:464
↓ 3 callersFunctioncleanupTestFiles
()
packages/cobra/challenge-4-advanced-features/solution-template_test.go:22
↓ 3 callersMethoddo
(ctx context.Context, operation func() (any, error))
challenge-20/submissions/y1hao/solution-template.go:149
↓ 3 callersFunctionexecute
(operation func() (any, error), cb *circuitBreakerImpl)
challenge-20/submissions/mick4711/solution-template.go:141
↓ 3 callersFunctionfindArticleByID
Helper functions findArticleByID finds an article by ID (Done)
packages/gin/challenge-2-middleware/submissions/BrianHuang813/solution.go:477
↓ 3 callersFunctionfindArticleByID
---------------------------------------------------------------- Helpers ---------------------------------------------------------------- findArticleB
packages/gin/challenge-2-middleware/submissions/odelbos/solution.go:332
↓ 3 callersFunctionfindArticleByID
(id int)
packages/gin/challenge-2-middleware/submissions/imankhodadi/solution.go:397
↓ 3 callersFunctionfindArticleByID
findArticleByID finds an article by ID
packages/gin/challenge-2-middleware/submissions/yogtanko/solution.go:554
↓ 3 callersFunctionfindArticleByID
Helper functions findArticleByID finds an article by ID
packages/gin/challenge-2-middleware/submissions/4mzy/solution.go:456
↓ 3 callersFunctionfindArticleByID
Helper functions findArticleByID finds an article by ID
packages/gin/challenge-2-middleware/submissions/Mxn-ptr/solution.go:603
↓ 3 callersFunctionfindArticleByID
============================================================================ 辅助函数 ====================================================================
packages/gin/challenge-2-middleware/submissions/22-7-co/solution.go:696
↓ 3 callersFunctionfindArticleByID
Helper functions findArticleByID finds an article by ID
packages/gin/challenge-2-middleware/submissions/Kinsue/solution.go:570
↓ 3 callersFunctionfindArticleByID
Helper functions findArticleByID finds an article by ID
packages/gin/challenge-2-middleware/submissions/shansing/solution.go:469
↓ 3 callersFunctionfindArticleByID
Helper functions findArticleByID finds an article by ID
packages/gin/challenge-2-middleware/submissions/ItalloMangueBoy/solution.go:526
↓ 3 callersFunctionfindArticleByID
Helper functions findArticleByID finds an article by ID
packages/gin/challenge-2-middleware/submissions/Onkar-25/solution.go:557
↓ 3 callersFunctionfindArticleByID
Helper functions findArticleByID finds an article by ID
packages/gin/challenge-2-middleware/submissions/father-frog/solution.go:601
↓ 3 callersFunctionfindUserByEmail
(email string)
packages/gin/challenge-4-authentication/solution-template.go:147
↓ 3 callersFunctionfindUserByEmail
(email string)
packages/gin/challenge-4-authentication/submissions/law-lee/solution.go:212
↓ 3 callersFunctionfindUserByID
(id int)
packages/gin/challenge-4-authentication/submissions/BrianHuang813/solution.go:237
↓ 3 callersFunctionfindUserByID
(id int)
packages/gin/challenge-4-authentication/submissions/22-7-co/solution.go:225
↓ 3 callersFunctionfindUserByID
Helper function to find user by ID (Done)
packages/gin/challenge-1-basic-routing/submissions/BrianHuang813/solution.go:251
↓ 3 callersFunctionfindUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/0xMoonrise/solution.go:274
↓ 3 callersFunctionfindUserByID
--------------------------------------------------------------- Helpers ---------------------------------------------------------------
packages/gin/challenge-1-basic-routing/submissions/odelbos/solution.go:199
↓ 3 callersFunctionfindUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/labib99/solution.go:263
↓ 3 callersFunctionfindUserByID
(id int)
packages/gin/challenge-1-basic-routing/submissions/hudazaan/solution.go:222
↓ 3 callersFunctionfindUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/mahmoud-shabban/solution.go:307
↓ 3 callersFunctionfindUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/kelvin-yong/solution.go:192
↓ 3 callersFunctionfindUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/Alibiderci/solution.go:386
↓ 3 callersFunctionfindUserByID
(id int)
packages/gin/challenge-1-basic-routing/submissions/MarioPaez/solution.go:212
← previousnext →401–500 of 12,886, ranked by callers