{"id":11341,"date":"2022-07-20T10:17:42","date_gmt":"2022-07-20T07:17:42","guid":{"rendered":"https:\/\/elzero.org\/?p=11341"},"modified":"2022-10-26T19:45:54","modified_gmt":"2022-10-26T16:45:54","slug":"programming-count-negatives-sum-positive-sort-string","status":"publish","type":"post","link":"https:\/\/elzero.org\/old\/programming-count-negatives-sum-positive-sort-string\/","title":{"rendered":"Count Negative And Sum Positive And Sort String"},"content":{"rendered":"<h3>\u0645\u0642\u062f\u0645\u0629 \u0639\u0646 \u0627\u0644\u062a\u062d\u062f\u064a<\/h3>\r\n\r\n<div class=\"text\">\r\n\u0642\u0645 \u0628\u062d\u0633\u0627\u0628 \u0639\u062f\u062f \u0627\u0644\u0623\u0631\u0642\u0627\u0645 \u0627\u0644\u0645\u0648\u062c\u0628\u0629 \u0648\u0642\u0645 \u0628\u062d\u0633\u0627\u0628 \u0645\u062c\u0645\u0648\u0639 \u0627\u0644\u0623\u0631\u0642\u0627\u0645 \u0627\u0644\u0633\u0627\u0644\u0628\u0629 \u0648\u0642\u0645 \u0628\u062a\u0631\u062a\u064a\u0628 \u0639\u0646\u0627\u0635\u0631 \u0627\u0644 String\r\n<\/div>\r\n\r\n<h3>\u0627\u0644\u0637\u0644\u0628\u0627\u062a<\/h3>\r\n\r\n<ul class=\"points\">\r\n  <li>\u0644\u062f\u064a\u0643 \u0627\u0644 Array \u0627\u0644\u062a\u0627\u0644\u064a\u0629 \u062a\u062d\u062a\u0648\u064a \u0639\u0644\u0649 \u0623\u0631\u0642\u0627\u0645 \u0645\u0648\u062c\u0628\u0629 \u0648\u0633\u0627\u0644\u0628\u0629 \u0648 Strings<\/li>\r\n  <li>\u0627\u0644\u0645\u0637\u0644\u0648\u0628 \u0639\u0645\u0644 Function \u062a\u0642\u0628\u0644 \u0645\u0646\u0643 Parameter \u0648\u0627\u062d\u062f \u0648\u0647\u0648 \u0627\u0644 Array<\/li>\r\n  <li>\u0643\u0644 \u0645\u0627 \u0639\u0644\u064a\u0643 \u0647\u0648 \u062d\u0633\u0627\u0628 \u0643\u0645 \u0639\u062f\u062f \u0627\u0644\u0623\u0631\u0642\u0627\u0645 \u0627\u0644\u0633\u0627\u0644\u0628\u0629 <\/li>\r\n  <li>\u062b\u0645 \u062d\u0627\u0635\u0644 \u062c\u0645\u0639 \u0627\u0644\u0623\u0639\u062f\u0627\u062f \u0627\u0644\u0645\u0648\u062c\u0628\u0629<\/li>\r\n  <li>\u062b\u0645 \u0637\u0628\u0627\u0639\u0629 \u0627\u0644 String \u0645\u0639 \u0628\u0639\u0636\u0647\u0627 \u0628\u0639\u062f \u0639\u0645\u0644 Sort \u0644\u0647\u0645 \u0623\u0628\u062c\u062f\u064a\u0627<\/li>\r\n  <li>\u0628\u0639\u062f \u0630\u0644\u0643 \u062a\u0642\u0648\u0645 \u0628\u0625\u0631\u062c\u0627\u0639 Array \u0641\u064a\u0647\u0627 \u0643\u0644 \u0645\u0627 \u0633\u0628\u0642 \u0643\u0645\u0627 \u0641\u064a \u0627\u0644\u0645\u062b\u0627\u0644<\/li>\r\n<\/ul>\r\n\r\n<script type=\"text\/plain\" class=\"language-javascript\">\r\nlet arr = [1, 10, 15, -2, -5, 0, \"Z\", \"A\", 8, -30, 5, \"C\"];\r\n\r\nfunction getResult(arr) {\r\n  \/\/ Your Code\r\n}\r\n\r\n\/\/ Ouput \r\n[39, 3, 'ACZ']\r\n<\/script>","protected":false},"excerpt":{"rendered":"<p>Count Negative And Sum Positive<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[882],"tags":[],"class_list":["post-11341","post","type-post","status-publish","format-standard","hentry","category-programming-challenges"],"_links":{"self":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/11341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/comments?post=11341"}],"version-history":[{"count":4,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/11341\/revisions"}],"predecessor-version":[{"id":11345,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/11341\/revisions\/11345"}],"wp:attachment":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/media?parent=11341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/categories?post=11341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/tags?post=11341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}