Comments (14)
@mubaris trying for stack, will do PR soon
from algorithms.
@mubaris @gauthamzz I got busy with my exams but free now. Here I tried to make a stack in Go. please if you could give some feedback.
package main
import "fmt"
type Stack struct {
size int
top *Node
}
type Node struct {
value string
next *Node
}
func (s *Stack) Length() int {
return s.size
}
func (s *Stack) Push(val string) {
s.top = &Node{val, s.top}
fmt.Printf("%v pushed to stack\n",val)
s.size++
}
func (s *Stack) Pop() (val string) {
if s.size > 0 {
val, s.top = s.top.value, s.top.next
s.size--
return
}
return
}
func main() {
stack := &Stack{}
stack.Push("10")
stack.Push("20")
stack.Push("30")
fmt.Println()
for stack.Length() > 0 {
fmt.Printf("%s popped from stack\n", stack.Pop())
}
}
from algorithms.
@mubaris @gauthamzz done Linked List implementation through PR #22
from algorithms.
I want to work on heaps.
from algorithms.
sounds good @anandwana001
from algorithms.
send pr ,it looks good
from algorithms.
Is this for everyone, if not can it be assigned to me?
from algorithms.
As of now only Stack and Queue are implemented.
Each Data Structure will get 10 points. If you would like to take this issue, Take Each DS one by one and comment you're working on it.
from algorithms.
Alright I would like to work on making a linked list.
from algorithms.
@falconis Sure
from algorithms.
May I work on Graph ?
from algorithms.
Yeah sure
from algorithms.
Can I do the Binary Search tree?
from algorithms.
yea sure @namantw
from algorithms.
Related Issues (10)
- Implement sorting algo's in Go HOT 17
- Update Readme file HOT 1
- Star This Repo HOT 16
- Add Greedy Algorithms in Go HOT 5
- Add Searching Algorithms HOT 2
- Add sorting algo's HOT 1
- Convert algorithms to posts in Letsgo repo HOT 3
- Implement the Following algorithms if not present in Go HOT 4
- Add Fermat's primality test HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from algorithms.