»Ø¸´: 0
ÊÕÆð×ó²à

Akuna OA 2025 Intern

ÄäÃûÓû§-P1PGF  2024-8-10 19:30:26
±¾Â¥£º   👍  1
100%
0%
0   👎

2025(4-6ÔÂ) ÂëÅ©ÀàGeneral ˶ʿ ʵϰ@akunacapital - ÍøÉϺ£Í¶ - ÔÚÏß±ÊÊÔ  | 😐 Neutral 😣 HardOther | Ó¦½ì±ÏÒµÉú

×¢²áһĶÈý·ÖµØÂÛ̳£¬²é¿´¸ü¶à¸É»õ£¡

ÄúÐèÒª µÇ¼ ²Å¿ÉÒÔÏÂÔØ»ò²é¿´¸½¼þ¡£Ã»ÓÐÕʺţ¿×¢²áÕ˺Å

x
2024-2025 Software Engineer Intern Assessment (Python Test)
75 ·ÖÖÓ 5 µÀÌâµÄhackerrank

µÚÒ»Ìâ±È½ÏÄÑ£¬ÎÒûд³öÀ´£º
given an array of integers, make all elements in the array have equal values by applying some operations:
choose a prefix and an integer,
add the integer to each element in the prefix
the cost is abs(integer)

[1,4,2,1] prefix = 2, x = -3
the array become [-2,1,2,1] and cost is 3

Find the answer with minimum cost

µÚ¶þÌâÊǼòµ¥ÕÕ×ÅÒªÇóд¸öclass ºÍ function

3-5 ÊǼò´ðÌâ
3£º An inversion in a is a distinct pair of indices where I < j and a[
ÄúºÃ£¡
±¾ÌûÒþ²ØµÄÄÚÈÝÐèÒª»ý·Ö¸ßÓÚ 188 ²Å¿Éä¯ÀÀ
Äúµ±Ç°»ý·ÖΪ 0¡£
ʹÓÃVIP¼´¿Ì½âËøÔĶÁȨÏÞ»ò²é¿´ÆäËû»ñÈ¡»ý·ÖµÄ·½Ê½
Óοͣ¬ÄúºÃ£¡
±¾ÌûÒþ²ØµÄÄÚÈÝÐèÒª»ý·Ö¸ßÓÚ 188 ²Å¿Éä¯ÀÀ
Äúµ±Ç°»ý·ÖΪ 0¡£
VIP¼´¿Ì½âËøÔĶÁȨÏÞ »ò ²é¿´ÆäËû»ñÈ¡»ý·ÖµÄ·½Ê½
of operations required to make x and y equal.
È»ºó¸ø¼¸¸ö x ºÍ y£¬ Ñ¡ÔñÕýÈ·µÄoperations
5.Mysql ÄĸöÓï¾ä»áthrow error

Æäʵ×îÄѵľÍÊǵÚÒ»Ì⣬ºóÃ漸¸ö¶¼»¹ºÃ£¬30minÄÚÓ¦¸ÃÄܽâ¾ö¡£

ÆÀ·Ö

²ÎÓëÈËÊý 1´óÃ× +5 ÊÕÆð ÀíÓÉ
ÇåµÀÉñ¾ý + 5 »¶Ó­·ÖÏíÄãÖªµÀµÄÇé¿ö£¬»á¸ø¸ü¶à´óÃ×½±Àø£¡

²é¿´È«²¿ÆÀ·Ö


ÉÏһƪ£ºÑÇÂéµêÃæ¹Ò¾­
ÏÂһƪ£º×Ö½ÚÒ»ÂÖÓÎ
ÄúÐèÒªµÇ¼ºó²Å¿ÉÒÔ»ØÌû µÇ¼ | ×¢²áÕ˺Å
Òþ˽ÌáÐÑ£º
  • ☑ ½ûÖ¹·¢²¼¹ã¸æ£¬À­Èº£¬Ìù¸öÈËÁªÏµ·½Ê½£ºÕÒÈËÇëÈ¥🔗ͬѧͬÊ·ÉÓÑ£¬À­ÈºÇëÈ¥🔗À­Èº½á°é£¬¹ã¸æÇëÈ¥🔗ÌøÔéÊг¡,ºÍ 🔗×â·¿¹ã¸æ|ÕÒÊÒÓÑ
  • ☑ ÂÛ̳ÄÚÈÝÔÚ·¢Ìû 30 ·ÖÖÓÄÚ¿ÉÒԱ༭£¬¹ýºóÔò²»ÄÜɾÌû¡£Îª·ÀÖ¹±»É§ÈÅÉõÖÁÈËÈ⣬²»Òª¹«¿ªÁô΢ÐŵÈÁªÏµ·½Ê½£¬ÈçÓÐÐèÇóÇëÒÔÂÛ̳˽ÐÅ·½Ê½·¢ËÍ¡£
  • ☑ ¸É»õ°æ¿é¿ÉÃâ·ÑʹÓà 🔗³¬¼¶ÄäÃû£ºÃæ¾­£¨ÃÀ¹úÃæ¾­¡¢ÖйúÃæ¾­¡¢Êý¿ÆÃæ¾­¡¢PMÃæ¾­£©£¬¶¶°ü¸¤£¨ÃÀ¹ú¡¢Öйú£©ºÍ¼ȡ»ã±¨¡¢¶¨Î»Ñ¡Ð£°æ
  • ☑ ²éÔÄÈ«Õ¾ 🔗¸÷ÖÖÄäÃû·½·¨

±¾°æ»ý·Ö¹æÔò

>
¿ìËٻظ´ ·µ»Ø¶¥²¿ ·µ»ØÁбí