Giter Site home page Giter Site logo

learninggo-'s People

Contributors

alecsisduarte avatar brisingr24 avatar naveenkhasyap avatar nazuk27 avatar pankhudib avatar raghavddps2 avatar raghavddps23 avatar vishal-wadhwa avatar

Stargazers

 avatar

Watchers

 avatar

learninggo-'s Issues

Add the Selection Sort Algorithm in Go

  1. Write the Selection Sort Algorithm in go lang
  2. Include certain test cases as well
  3. Make sure you include edge cases too.

Please put it into the easy folder.

Search in a 2D Sorted Matrix

Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Put this in the medium folder.

Integers in each row are sorted from left to right.
The first integer of each row is greater than the last integer of the previous row.

Input and Output format
Input: matrix = [[1,3,5,7],[10,11,16,20],[23,30,34,50]], target = 3
Output: true

Write a program in go for the same

Add the Merge Sort Algorithm

  1. Write the Merge Sort Algorithm in go lang
  2. Include certain test cases as well
  3. Make sure you include edge cases too.

Please put it into the medium folder.

Search in a 2D matrix

Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Put this in the medium folder.

Integers in each row are sorted from left to right.
The first integer of each row is greater than the last integer of the previous row.

Input and Output format
Input: matrix = [[1,3,5,7],[10,11,16,20],[23,30,34,50]], target = 3
Output: true

Write a program in go for the same

Add the Queue Data Structure

Add the Queue Data structure in the Medium Folder.
For guide on how to get started, refer to the Stack Data Structure implemented in the Medium Folder

You need to create 2 files

  1. One file implementing all the queue functions - enqueue/dequeue/is Empty/front
  2. Another file using the same Queue written in the previous file.

For understanding how a queue works, refer this article on GeeksForGeeks
https://www.geeksforgeeks.org/array-implementation-of-queue-simple/

Spiral traversal of a matrix

Add the solution for this problem in Go in the medium folder.

Example: Given an input like this
4 4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

Output:
1 2 3 4 8 12 16 15 14 13 9 5 6 7 11 10

The first two lines indicating the number of rows and columns and the next line contains the elements row by row, we are supposed to print the spiral order traversal of the matrix.

Concepts required - Variables/If else statements/loops

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.