Filter
Exclude
Time range
-
Near
22 May 2025
I got a hallucinated @airtable formula called arraysort() but it was from chatgpt
This is so bad. In the legendary D-Day scene of "Saving Private Ryan", @tomhanks says something like "gatac gatac" into a walkie talkie. So I checked Google to find out what he said. And @GoogleAI... just totally made some shit up. ๐Ÿ‘‡
1
287
16 Apr 2025
RadixSort algorithm efficiently organizes numeric data by sorting from the least significant to the most significant digit. This approach works well for both integer and float data types. The time complexity of RadixSort is O(n * k), where 'n' is the number of elements and 'k' represents the maximum number of bytes in the elements. The method iterates over each byte position to sort the data accordingly. In conjunction with MQL, a highly-optimized LSD RadixSort implementation is available, leveraging radix 256 (8-bits). This version is capable of handling large arrays with millions of numbers efficiently. Stemming from Pierre Terdiman's work, it incorporates various optimizations for enhanced performance, attaining speeds of 3-10 times faster than MQL's native ArraySort() function. This implementation accepts arrays of different types but sorts them b... #MQL5 #MT5 #Algorithm #Sorting mql5.com/en/code/38763?utm_sโ€ฆ
3
212
// ------------------------------------------------------------------ //| test.mq5 | //| Copyright 2024, MetaQuotes Ltd. | //| mql5.com | // ------------------------------------------------------------------ #property copyright "Copyright 2024, MetaQuotes Ltd." #property link "mql5.com" #property version "1.00" // ------------------------------------------------------------------ //| Expert initialization function | // ------------------------------------------------------------------ int OnInit() { //--- double arrayData[]; arrayData.Push(rand()); arrayData.Push(rand()); arrayData.Push(rand()); arrayData.Push(rand()); arrayData.Push(rand()); ArraySort(arrayData); for(int i = 0;i < arrayData.Size();i ) { Print(arrayData[i]); } //--- return(INIT_SUCCEEDED); } // ------------------------------------------------------------------ //| Expert deinitialization function | // ------------------------------------------------------------------ void OnDeinit(const int reason) { //--- } // ------------------------------------------------------------------ //| Expert tick function | // ------------------------------------------------------------------ void OnTick() { //--- } // ------------------------------------------------------------------

1
675
MQL5้€†ๅผ•ใ่ฌ›ๅบง ้–ขๆ•ฐใ‚’ไฝฟใฃใฆ้…ๅˆ—ใฎใ‚ฝใƒผใƒˆใ‚’่กŒใฃใฆใฟใ‚ˆใ†โ€ผ๏ธ ใฉใ†ใ‚„ใ‚‹ใ‹ใจใ„ใ†ใจใ€ArraySort้–ขๆ•ฐใงใ€็ฐกๅ˜ใซ็…งๆบ–ใซๅค‰ๆ›ดๅฏ่ƒฝใ€‚ forๆ–‡ใชใฉ็”จใ„ใšใซใ€ไธ€่กŒใงใ‚ฝใƒผใƒˆใŒๅฎŒไบ†ใ—ใพใ™ใ€‚ ใƒ—ใƒญใ‚ฐใƒฉใƒ ใฏใƒชใƒ—ๆฌ„ใธโฌ‡๏ธ
2
1
8
294
ArraySort้–ขๆ•ฐใฏใ€ๅคšๆฌกๅ…ƒใฎๆ•ฐๅ€ค้…ๅˆ—ใซใŠใ„ใฆใ€ๆœ€ๅˆใฎๆฌกๅ…ƒ๏ผˆ0็•ช็›ฎใฎๆฌกๅ…ƒ๏ผ‰ใฎๅ€คใ‚’ๆ˜‡้ †ใซใ‚ฝใƒผใƒˆใ™ใ‚‹ใŸใ‚ใฎ้–ขๆ•ฐใงใ™ใ€‚ ใ“ใฎ้–ขๆ•ฐใ‚’ไฝฟ็”จใ™ใ‚‹ใจใ€้…ๅˆ—ๅ†…ใฎใƒ‡ใƒผใ‚ฟใ‚’ไธฆในๆ›ฟใˆใ‚‹ใ“ใจใŒใงใใ€็‰นใซใƒ‡ใƒผใ‚ฟใฎๅˆ†ๆžใ‚„ๅ‡ฆ็†ใ‚’่กŒใ†้š›ใซไพฟๅˆฉใงใ™ใ€‚ mqlinvestmentlab.com/aboutarโ€ฆ

2
83
Replying to @graninas @xylevin
ะฝัƒ ัั‚ะพ ัะปะพะถะฝะพ:) ั ะฝะฐั‡ะธะฝะฐะป ั ัั‚ะธะผะธ ั„ัƒะฝะบั†ะธัะผะธ ั‡ะตั€ะตะท ะบะปะธะบั…ะฐัƒัะพะฒัะบะธะต arraySort() ะตัะปะธ ะฑั‹ ัั‚ะพ ัะผะตัˆะฐะปะธ ั ั€ะตะดัŒัŽัะพะผ ั‚ะพ ะณะพะปะพะฒะฐ ะฑั‹ ะปะพะฟะฝัƒะปะฐ ั‚ะฐะบ ั‡ั‚ะพ ะปัƒั‡ัˆะต ะพั‚ะดะตะปัŒะฝะพ ะดะฐ.
1
1
12
Here's an extreme case where I unplugged my laptop mid-run. Every data series shows a bimodal distribution, but you can still easily tell that Array.sort(18) is faster than ArraySort(20).
1
40
๐ƒ๐ข๐Ÿ๐Ÿ๐ž๐ซ๐ž๐ง๐œ๐ž ๐›๐ž๐ญ๐ฐ๐ž๐ž๐ง ๐€๐ซ๐ซ๐š๐ฒ๐ฌ.๐ฌ๐จ๐ซ๐ญ() ๐š๐ง๐ ๐‚๐จ๐ฅ๐ฅ๐ž๐œ๐ญ๐ข๐จ๐ง๐ฌ.๐ฌ๐จ๐ซ๐ญ(). ๐Ÿ‘‰๐€๐ซ๐ซ๐š๐ฒ๐ฌ.๐ฌ๐จ๐ซ๐ญ():-It sorts the arrays which can be the type of primitive data type. ๐€๐ฅ๐ ๐จ๐ซ๐ข๐ญ๐ก๐ฆ:- Dual-Pivot Quicksort algorithm ๐“๐ข๐ฆ๐ž ๐‚๐จ๐ฆ๐ฉ๐ฅ๐ž๐ฑ๐ข๐ญ๐ฒ: O(nlog(n))ย ย  ๐€๐ฎ๐ฑ๐ข๐ฅ๐ข๐š๐ซ๐ฒ ๐’๐ฉ๐š๐œ๐ž : O(1) ๐Ÿ‘‰ ๐‚๐จ๐ฅ๐ฅ๐ž๐œ๐ญ๐ข๐จ๐ง๐ฌ.๐ฌ๐จ๐ซ๐ญ():- It sort only the objects which extends List interface(ArrayList,LinkedList etc)ย or user-defind class objects if class implements Comparable.ย  ๐€๐ฅ๐ ๐จ๐ซ๐ข๐ญ๐ก๐ฆ:- Adaptive Mergesort algorithm ๐“๐ข๐ฆ๐ž ๐‚๐จ๐ฆ๐ฉ๐ฅ๐ž๐ฑ๐ข๐ญ๐ฒ: O(nlog(n))ย ย  ๐€๐ฎ๐ฑ๐ข๐ฅ๐ข๐š๐ซ๐ฒ ๐’๐ฉ๐š๐œ๐ž : O(1) Examples:- โœ… Arrays.sort():- import java.util.Arrays; class ArraySort { public static void main(String arg[]){ ย  int arr[] = {10,4,6,7,8}; ย  Arrays.sort(arr); // {4,6,7,8,10} ย } } โœ… Collections.sort():- import java.util.Collection; import java.util.List; class CollectionSort { public static void main(String arg[]){ ย  List<Integer> arrList = List.of(11,5,6,3,2,8) ย  Collections.sort(arrList); // {2,3,5,6,8,11} ย } } Follow @full_stack_geek ๐Ÿ‘จโ€๐Ÿ’ป for more interview questions. #java #corejava #java8 #springboot #backenddeveloper #fullstackdeveloper #javadeveloper #javaprogramming
1
84
3 Aug 2023
@RareSkills_io Is there a leaderboard or Tweet thread for ArraySort? I want to see how my YUL insertion sort stacks up:
13
This article helped me understand Array.sort() function on a deeper level: dev.to/felix/understanding-sโ€ฆ quote: if the first string is "greater" (comes after in alphabetical order) than the second one, we return a positive value so that value1 is put after value2 #javascript #arraysort
1
21