/images/avatar.jpeg

How to integrate Golang Service with Chat GPT API

How to integrate Golang Service with Chat GPT API. Intro In this tutorial we’re going to create a Golang service that communicates with Chat GPT API. The source code you can find here. As a result you should be able to understand how to do it and change the logic for implementing your own use cases. Considerations For implementing the solution we need to have: API Key to Chat GPT API and at the moment Chat GPT doesn’t provide free trial, so you’ll have to setup your Open API account and pay X per token.

The Incredible Two Pointers technique

Hey there, fellow learners! I’m Artem, and today’s lesson is all about the incredible Two Pointers technique. What is the benefit of two pointers technique? Before we start digging into this technique, I want to tell you about the benefit. Two pointers technique can dramatically improve the performance of your solution. It allows you to move from O(n^2), O(n log n) time complexity to O(n) What is two pointers technique? To understand two pointers technique you should be familiar with the data structures like arrays and linked lists, and master Big O notation.

Big O Notation Notes

Hello everybody and welcome back. My name is Artem and in this blog post we’re going to understand what does Big O notation mean and consider the time complexity. So, Let’s get to it! Why it’s essential to understand and master Big O? First, it allows you to determine the most efficient solution for task that you need to resolve. Secondly, it potentially could help you to optimise an existing solution that you have implemented already.