Vibhas Thakurdesaicodotics.hashnode.dev·Nov 28, 2024Playing with data types...The article provides an overview of data types in C, highlighting primary types such as integers, floating-point numbers, and characters, along with derived types like arrays, pointers, structures, and unions. It also explains the characteristics and...Discussbigining
Oluwatosin Oghenewaire Thompsongoninja.hashnode.dev·Nov 4, 2024Part 1: Understanding Basic Data Types in Go - Integers, Floats, and Booleans explainedGo is a statically typed language, meaning that the type of a variable is set at compile time, which helps catch many errors early in development. We’ll cover three essential data types in Go: integers, floats, and booleans. Mastering these basic dat...DiscussBeginner's Guide to Golang: Start Coding with Confidencemath.Ceil
Stanislav Kirichokswiftdev.hashnode.dev·Sep 8, 2024Swift. Numbers. And their limits (Part 1)All We Have Swift provides a variety of number types: Int, Float, Double and others. Each of these types serves a distinct purpose, offering storage options for different kinds of numeric data. Signed Integers With 64-bit systems now making up more t...Discuss·36 readsSwift
Gulshan Kumarperfinsights.hashnode.dev·Apr 28, 2024Find N Unique Integers Sum up to ZeroGiven an integer n, return any array containing n unique integers such that they add up to 0. LeetCode Problem - 1304 class Solution { // Method to generate an array of n integers with a sum of zero public int[] sumZero(int n) { // Cr...DiscussJava SolutionJava
Gulshan Kumarperfinsights.hashnode.dev·Dec 31, 2023Roman to IntegerRoman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, 2 is written ...DiscussJava SolutionromanToInteger
Ramandeep Singhramandeepsingh.hashnode.dev·Jul 26, 2023Roman to Integerwe are given a Roman number and we have a dictionary that enlists integer values corresponding to each Roman number. the dictionary is as follows Symbol Value I 1 V 5 X 10 L 50 C 100 D...Discuss·39 readsDSA
Elucian MoiseforProgramming Languagessagecode.hashnode.dev·Mar 31, 2023Go: Integer typeIn Go, the integer data type is used to represent whole numbers without fraction or decimal components. There are several built-in types to represent integers of different sizes: int8: Represents signed 8-bit integers with a range between -128 to 12...DiscussGo Languagegolang
Jan Prazakabcode.hashnode.dev·Jun 30, 2022TypeScript program to get all separate digits of a numberDo you need to "extract" each digit of a given number? Then this little TypeScript program is probably exactly what you're looking for. I have inserted some important comments about the "safe" input range, so make sure you are aware of it before usin...DiscussTypeScript