الاختبار الكتابي عبر الإنترنت: أسئلة الاختيار من متعدد حول الكفاءة والبرمجة 2 أسئلة الترميز. F2F R1 1) إعطاء سلسلة من أي طول. اطبع جميع المجموعات الممكنة لطول السلسلة k تلميح استخدم التكرار 2) أعط طباعة مصفوفة بترتيب حلزوني. 3) التحقق مما إذا كانت الشجرة المعطاة هي BST أم لا. تم حلها حسب الطريقة 3 https://www.geeksforgeeks.org/dsa/a-program-to-check-if-a-binary-tree-is-bst-or-not/ ثم أطلع هو نفسه شفهيًا على الطريقة الأولى من نفس الرابط وطلب مني أن أكتب رمزًا لنفسه واكتشف الخطأ في هذا النهج. F2f r2 1) Given a Node such that Node x { boolean ifFile; int[] children; } had to print all the paths from root to the file. if there is no file don't print anything. Note: This is not tree or graph. The structure is like windows file system and hierarchy can be any long. So recursion will cause stack overflow. Solve it without recursion 2) Given a sorted array with one number having any number of duplicates For eg [12344456] Find the index of the first occur of duplicating element. So for above example your function should return 3. Hint: Use Binary search 3) Minimum number of jumps to reach end Given an array of integers where each element represents the max number of steps that can be made forward from that element. Write a function to return the minimum number of jumps to reach the end of the array (starting from the first element). If an element is 0 then cannot move through that element. Example: Input: arr[] = {1 3 5 8 9 2 6 7 6 8 9} Output: 3 (1-> 3 -> 8 ->9) F2F R3 تمت مناقشة السيرة الذاتية والمشاريع التي تم العمل عليها. 1) إعطاء حالة تيار ثنائي إذا كان الرقم قابلاً للقسمة على 3 في أي وقت تمت مناقشة 2-3 طرق. 2) ناقش الأساليب المختلفة لتنفيذ القاموس. 3) بالنظر إلى مجموعة، قم بطباعة جميع المجموعات الفرعية الممكنة. F2F R4 (الجولة الإخراجية الأخيرة) ناقشت مشاريع عملي ومشاريع الكلية أيضًا. ناقش مختلف الأساليب والتعقيدات لمشكلة دوران المصفوفة. جميع المسائل التدريبية لبرنامج Adobe !مشاكل الممارسة ذات الصلة
الحد الأدنى لعدد القفزات