Learned or Solved Something Today?

Dump it here! Let others learn from you

Showing 20 of 6137 from page 1

fazna posted in #python #project

test - solving challenges

challenges solving test etst etst etst challenges solving test etst etst etst challenges solving test etst etst etst challenges solving test etst etst etstchallenges solving test etst etst etstchallen

220bartek posted in #go #snippets

Golang templates example without the use of structs

In the Golang template package, the first example given pulls its data from a struct. However, the documentation states that data can also be pulled from a map Annotations in the template refer to ele

tikev39 posted in #python #codingchallenge

Advent of Code day 3 Part 1 and part 2 (Python)

Solution for part 1 and part 2 of day 3 on Advent of Code. If you have any questions, feel free to ask in the comments.

metabox posted in #sh #script #tutorial

[Fixed] node-gyp rebuild configure error: No Xcode or CLT version detected!

You have this error during npm install node build and you are searching about how to fix or resolve this issue. node gyp rebuild is failed, and this is because No Xcode or CLT version detected Error d

metabox posted in #c #cpp #codingchallenge #hackerrank-solutions

Chocolate Game | HackerRank Problem | C++ Solution

CPP solution for hackerrank problem Chocolate Game Description Laurel and Hardy have n piles of chocolates with each pile containing some number of chocolates. The piles are arranged from left to righ

metabox posted in #java #codingchallenge #hackerrank-solutions #hackerrankproblem

Mandragora Forest | HackerRank Problem | Java Solution

Solution for hackerrank problem Mandragora Forest in Java. The evil forest is guarded by vicious mandragoras. Garnet and her pet must make a journey through. She starts with pet health point s and 0 e

metabox posted in #java #codingchallenge #data-structures #binary-search #binary-tree

Convert Binary Search Tree to Doubly Linked List | Java Solution

Program to convert a binary search tree to doubly linked list with in order traversal. The left and right pointers in nodes are to be used as previous and next pointers respectively in converted Circu

metabox posted in #sql #snippets

PostgreSQL query to return db records from the last X days, weeks or months

We always need to fetch some latest records from database and we often forget the query or too lazy to write it ourself and we search something like How to list records with date from the last 10 days

bytebot posted in #codingchallenge #cpp #matrix

Spiral Print | matrix | C++ Solution

Spiral Print, is a matrix related problem and in this post we will see how we can solve this challenge in C++ Print the elements of a matrix in spiral form Please check the main.cpp snippet for the s

bytebot posted in #codingchallenge #cpp #matrix

Search Matrix | matrix | C++ Solution

Search Matrix, is a matrix related problem and in this post we will see how we can solve this challenge in C++ search an element in a matrix of n X n. every row and column is sorted in increasing ord

bytebot posted in #codingchallenge #cpp #matrix

Boolean Matrix Optimised | matrix | C++ Solution

Boolean Matrix Optimised, is a matrix related problem and in this post we will see how we can solve this challenge in C++ Given a boolean matrix mat M N of size M X N, modify it such that if a matrix

bytebot posted in #codingchallenge #cpp #matrix

Boolean Matrix | matrix | C++ Solution

Boolean Matrix, is a matrix related problem and in this post we will see how we can solve this challenge in C++ Given a boolean matrix mat M N of size M X N, modify it such that if a matrix cell mat

bytebot posted in #codingchallenge #cpp

Tries Creation | Tries | C++ Solution

Tries Creation, is a Tries related problem and in this post we will see how we can solve this challenge in C++ Please check the main.cpp snippet for the solution. This solution originally posted at G

bytebot posted in #codingchallenge #cpp #string

Zigzag String | Strings | C++ Solution

Zigzag String, is a Strings related problem and in this post we will see how we can solve this challenge in C++ Zigzag StringBookmark Suggest Edit The string PAYPALISHIRING is written in a zigzag pat

bytebot posted in #codingchallenge #cpp #string

Substring String | Strings | C++ Solution

Substring String, is a Strings related problem and in this post we will see how we can solve this challenge in C++ computer the LPS array if the characters match Please check the main.cpp snippet for

bytebot posted in #codingchallenge #cpp #string

Roman To Number | Strings | C++ Solution

Roman To Number, is a Strings related problem and in this post we will see how we can solve this challenge in C++ Given a roman numeral, convert it to an integer. Input is guaranteed to be within the

bytebot posted in #codingchallenge #cpp #string

Reverse Sentence | Strings | C++ Solution

Reverse Sentence, is a Strings related problem and in this post we will see how we can solve this challenge in C++ Given an input string, reverse the string word by word. Example Given s the sky is

bytebot posted in #codingchallenge #cpp #string

Rabin Karp | Strings | C++ Solution

Rabin Karp, is a Strings related problem and in this post we will see how we can solve this challenge in C++ Rabin Karp algo for pattern matching worst case O nm when all the hash values are same as

bytebot posted in #codingchallenge #cpp #string

Min Op For Palindrome | Strings | C++ Solution

Min Op For Palindrome, is a Strings related problem and in this post we will see how we can solve this challenge in C++ Minimum Characters required to make a String PalindromicBookmark Suggest Edit P

bytebot posted in #codingchallenge #cpp #string

Length Last Wrod | Strings | C++ Solution

Length Last Wrod, is a Strings related problem and in this post we will see how we can solve this challenge in C++ Given a string s consists of upper lower case alphabets and empty space characters ,

fb